spawn

Function spawn 

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

Cross-platform task spawning

Spawns a new async task that runs in the background.

ยงExamples

use pmcp::shared::runtime::spawn;

spawn(async {
    println!("Running in background");
});