Cancel()
Cancels the awaitable. If the awaitable is being awaited, the awaiter receives a System.OperationCanceledException.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void Cancel()
Remarks
Note: Some methods returning an also accept a , such as Awaitable.WaitForSecondsAsync and Awaitable.NextFrameAsync. For such methods, both cancellation models are equivalent: whether you call directly or trigger the supplied , the awaiter receives an .
AwaitableCancellationTokenAwaitable.CancelCancellationTokenOperationCanceledException