actix_utils::future
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>,
impl<F, T> Future for PollFn<F> where F: FnMut(&mut Context<'_>) -> Poll<T>, type Output = T;
Creates a future driven by the provided function that receives a task context.