macro_rules! spawn_fut { ($fut:expr, $cb_missing_rt:stmt, $cb_runtime_error:expr) => { ... }; }
Expand description
This macro is used to simplify pushing futures to the runtime.
Parameter:
$fut: Future to push to the runtime.$cb_missing_rt: Callback to execute if the runtime is missing.$cb_runtime_error: Function to execute if the runtime could not be locked. Takes String as parameter.