pub fn doc_test<F>( spin: bool, task: impl IntoFuture<IntoFuture = F>, ) -> F::Outputwhere F: Future,
Executor used in async doc tests.
If spin is true the spin_on executor is used with a timeout of 500 milliseconds. IF spin is false the block_on executor is used with a timeout of 5 seconds.
spin
true
spin_on
false
block_on