This version of Unity is unsupported.

Awaitable.Cancel

Declaration

public void Cancel();

Description

Cancel the awaitable. If the awaitable is being awaited, the awaiter will get a System.OperationCanceledException.

Note: some methods returning an awaitable also accept a CancellationToken. Both cancelation models are equivalent.