Skip to main content

submit

Function submit 

Source
pub fn submit<F: FnOnce() + Send + 'static>(f: F)
Expand description

Submits a closure to the default thread pool.

The closure must be Send + 'static.

This uses TrySubmitThreadpoolCallback and reuses worker threads.