pub fn submit_with_priority<F: FnOnce() + Send + 'static>( priority: Priority, f: F, )
Submits a closure to the default thread pool with the given priority.
The closure must be Send + 'static.
Send + 'static