[][src]Function samotop_core::common::poll_fn

pub fn poll_fn<T, F>(f: F) -> PollFn<F>

Notable traits for PollFn<F>

impl<T, F> Future for PollFn<F> where
    F: FnMut(&mut Context<'_>) -> Poll<T>, 
type Output = T;
where
    F: FnMut(&mut Context<'_>) -> Poll<T>, 

TODO: Remove when poll_fn() is stabilized in std