[][src]Function lelet::spawn

pub fn spawn<F: Future<Output = ()> + Send + 'static>(task: F)

Run the task in the background.

Just like goroutine in golang, it does not return task handle, if you need synchronization, you can use futures-channel or std channel or else

Panic

When a task panic, it will abort the entire program