Macro bastion::spawn [−][src]
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);