pub fn poll_fn<F, Item, Meta, CanPend, CanEnd>(
func: F,
) -> PollFn<F, Item, Meta, CanPend, CanEnd>Expand description
Creates an asynchronous or synchronous pull from a closure.
The closure is called each time the pull is polled and should return a PullStep.