rumtk_spawn_task

Macro rumtk_spawn_task 

Source
macro_rules! rumtk_spawn_task {
    ( $func:expr ) => { ... };
    ( $rt:expr, $func:expr ) => { ... };
}
Expand description

Puts task onto the runtime queue.

The parameters to this macro are a reference to the runtime (rt) and a future (func).

The return is a [thread_primitives::JoinHandle] instance. If the task was a standard framework task, you will get thread_primitives::AsyncTaskHandle instead.