Function actix_utils::future::poll_fn
source · [−]pub fn poll_fn<F, T>(f: F) -> PollFn<F>ⓘNotable traits for PollFn<F>impl<F, T> Future for PollFn<F> where
F: FnMut(&mut Context<'_>) -> Poll<T>, type Output = T;
where
F: FnMut(&mut Context<'_>) -> Poll<T>,
Expand description
Creates a future driven by the provided function that receives a task context.