void call_callback(function f, mixed ... args)
Call a callback function, but send throws from the callback function (ie, errors) to master()->handle_error. Also accepts if f is zero (0) without error.
Functions.call_callback(the_callback,some,arguments); equals { mixed err=catch { if (the_callback) the_callback(some,arguments); }; if (err) master()->handle_error(err); } (Approximately, since call_callback also calls handle_error if 0 were thrown.)
Functions.call_callback(the_callback,some,arguments);
equals
{ mixed err=catch { if (the_callback) the_callback(some,arguments); }; if (err) master()->handle_error(err); }
(Approximately, since call_callback also calls handle_error if 0 were thrown.)