Skip to main content

submit_with_priority

Function submit_with_priority 

Source
pub fn submit_with_priority<F: FnOnce() + Send + 'static>(
    priority: Priority,
    f: F,
)
Expand description

Submits a closure to the default thread pool with the given priority.

The closure must be Send + 'static.