Function ntex::util::poll_fn [−][src]
pub fn poll_fn<T, F>(f: F) -> impl Future<Output = T> where
F: FnMut(&mut Context<'_>) -> Poll<T>,
Expand description
Creates a new future wrapping around a function returning Poll
.
Polling the returned future delegates to the wrapped function.