Function actix_utils::future::poll_fn[][src]

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>, 

Creates a future driven by the provided function that receives a task context.