Pike v8.1 release 6

Method Concurrent.Promise()->try_failure()


Method try_failure

void try_failure(mixed value)

Description

Maybe reject the Future value.

Parameter value

Failure result of the Future.

Mark the Future as failed if it hasn't already been fulfilled, and in that case schedule the on_failure() callbacks to be called as soon as possible.

See also

failure(), success(), on_failure()