pub fn spin_on<F>(task: impl IntoFuture<IntoFuture = F>) -> F::Outputwhere
F: Future,
Expand description
Continuous poll the task
until if finishes.
This function is useful for implementing some async tests only, futures don’t expect to be polled continuously. This function is only available in test builds.