AwaitableCompletionSource.TrySetCanceled

Declaration

public bool TrySetCanceled();

Returns

bool Indicates if the cancellation was successfuly raised.

Description

Raise cancellation (returns false if the awaitable was already completed or canceled).


Did you find this page useful? Please give it a rating: