Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

AwaitableCompletionSource<T0>.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).