Version: 2023.1
public void Cancel ();

描述

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.