Function spawn

Source
pub fn spawn<F: 'static + Future<Output = ()>>(future: F)
Expand description

Must be called on every top-level future corresponding to a method call of a canister by the IC, other than async functions marked #[update] or similar.