mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 19:40:09 +08:00
Add comment regarding deadlock avoidance
This commit is contained in:
@@ -83,6 +83,7 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
||||
#pragma warning disable RS0030
|
||||
// We can't GetResultSafely() here (will fail with "Can't use GetResultSafely from inside an async operation."), but Wait is safe enough due to
|
||||
// the task being a TaskCompletionSource.
|
||||
// Importantly, this doesn't deadlock because of the scheduler call above running inline where feasible (see the `false` argument).
|
||||
return tcs.Task.Result;
|
||||
#pragma warning restore RS0030
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user