分离玩家信息插件,以及更新检测

This commit is contained in:
2021-10-22 08:54:04 +02:00
parent 2a96f8efac
commit 08700abd4f
25 changed files with 860 additions and 234 deletions

View File

@@ -21,8 +21,9 @@ namespace AnotherReplayReader.Utils
using var locker = new Lock(_lock);
_current = _current.ContinueWith(async t =>
{
await _dispatcher.InvokeAsync(getTask, DispatcherPriority.Background, cancelToken);
}, cancelToken);
var task = await _dispatcher.InvokeAsync(getTask, DispatcherPriority.Background, cancelToken);
await task.ConfigureAwait(false);
}, cancelToken).Unwrap();
return _current.IgnoreCancel();
}