PromiseBase::Cancel (open)

Cancels the task behind the promise. The task must be built to handle the cancellation for this operation to have effect.

In an asynchronous function, you can use (AWAIT GetAsyncControl) to get the AsyncControl object which exposes the canceltoken that this function controls.

Syntax

LOADLIB "wh::promise.whlib";

MACRO Cancel()