Awaitable.Cancel

Declaration

public void Cancel();

Description

Cancels the awaitable. If the awaitable is being awaited, the awaiter receives a System.OperationCanceledException.

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


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