TPromise.fail

Marks the operation as failed with the specified exception and notifies any waiters.

If the operation was already cancelled, nothing happens.

class TPromise(ResultType)
void
fail
(
Exception exception
)

Throws

TFutureException if the operation is already completed.

Meta