Method Concurrent.Future()->on_await()


Method on_await

this_program on_await(function(mixed, function(mixed, __unknown__ ... :void)|void:void) cb)

Description

Set both success and failure callbacks.

Parameter cb

Callback to call with the success value on success.

On failure it is called with two arguments; the failure value and throw as the second argument.

Note

Used by await(), in which case cb will be a generator function.

See also

on_success(), on_failure(), await(), throw()