Method Concurrent.Future()->on_failure()
- Method
on_failure
this_program
on_failure(function
(mixed
,__unknown__
... :void
)cb
,mixed
...extra
)- Description
Register a callback that is to be called on failure.
- Parameter
cb
Function to be called. The first argument will be the failure result of the Future.
- Parameter
extra
Any extra context needed for
cb
. They will be provided as arguments two and onwards whencb
is called.- Note
cb
will always be called from the main backend.- See also