Reputation: 21741
I've got a Task
. It creates a TaskCompletionSource
and Wait
s for some other thing to set its Result
.
In the call to myTaskCompletionSource.Wait()
:
Upvotes: 0
Views: 64
Reputation: 127543
myTaskCompletionSource.Wait()
gets blocked, the creator of myTaskCompletionSource is not affected by the call.await
on it via await myTaskCompletionSource;
.Upvotes: 2