test_executors

Function poll_once

Source
pub fn poll_once<F: Future>(future: Pin<&mut F>) -> Poll<F::Output>
Expand description

Poll the given future once.

ยงExample

use test_executors::pend_forever::PendForever;
let mut future = PendForever;
let result = test_executors::poll_once(std::pin::Pin::new(&mut future));