[go: up one dir, main page]

spawn

Macro spawn 

Source
macro_rules! spawn {
    ($action:expr) => { ... };
    ($($tokens:tt)*) => { ... };
}
Expand description

Spawn a given future onto the executor from the global level.

ยงExample

let handle = spawn! {
    panic!("test");
};
run!(handle);