pub fn spawn<F, T>(future: F) -> RecoverableHandle<T> ⓘExpand description
Spawn a given future onto the executor from the global level.
§Example
use bastion::executor::{spawn, run};
let handle = spawn(async {
panic!("test");
});
run(handle);pub fn spawn<F, T>(future: F) -> RecoverableHandle<T> ⓘSpawn a given future onto the executor from the global level.
use bastion::executor::{spawn, run};
let handle = spawn(async {
panic!("test");
});
run(handle);