Function drone_core::fib::new_fn [−][src]
pub fn new_fn<F, Y, R>(f: F) -> FiberFn<F, Y, R> where
F: FnMut() -> FiberState<Y, R>,
Creates a fiber that runs the closure f
until FiberState::Complete
is
returned.
pub fn new_fn<F, Y, R>(f: F) -> FiberFn<F, Y, R> where
F: FnMut() -> FiberState<Y, R>,
Creates a fiber that runs the closure f
until FiberState::Complete
is
returned.