pub fn submit_after<F: FnOnce() + Send + 'static>(delay: Duration, f: F)Expand description
Submits a closure to the default thread pool to run once delay has elapsed.
The closure must be Send + 'static. The delay is a minimum: the closure never runs before
delay has elapsed, but it may run later if the system is busy or the system timer resolution
is coarse, which is often about 15 milliseconds.