h2

Function poll_fn

Source
pub(crate) fn poll_fn<T, F: FnMut(&mut Context<'_>) -> T>(f: F) -> PollFn<F> 
Expand description

Creates a future from a function that returns Poll.