test_executors

Function sleep_on

Source
pub fn sleep_on<F: Future>(future: F) -> F::Output
Expand description

Blocks the calling thread until a future is ready.

This implementation uses a condvar to sleep the thread.