TPromise.cancel

Marks this operation as cancelled and notifies any waiters.

If the operation is already completed, nothing happens.

class TPromise(ResultType)
void
cancel
()

Meta