Photomechanics API
|
Extensions for TaskCompletionSource. More...
Static Public Member Functions | |
static IDisposable | AsDisposable (this TaskCompletionSource tcs) |
Return disposable token which will try to complete provided TaskCompletionSource when disposed. Useful to make code like More... | |
Extensions for TaskCompletionSource.
|
static |
Return disposable token which will try to complete provided TaskCompletionSource when disposed. Useful to make code like
finally { taskCompletionSource.Complete(); }
more concise.