Function poll_fn
fn poll_fn<T, F>(f: F) -> PollFn<F>
where
F: FnMut(&mut Context<'_>) -> Poll<T>
Creates a new future wrapping around a function returning Poll.
Polling the returned future delegates to the wrapped function.
Examples
# block_on;