wasmtime_wasi::runtime

Function poll_noop

source
pub fn poll_noop<F>(future: Pin<&mut F>) -> Option<F::Output>
where F: Future,
Expand description

Attempts to get the result of a future.

This function does not block and will poll the provided future once. If the result is here then Some is returned, otherwise None is returned.

Note that by polling future this means that future must be re-polled later if it’s to wake up a task.