test_executors

Function spin_on

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

Blocks the calling thread until a future is ready.

This implementation uses a spinloop.