Function drone_core::fib::new[][src]

pub fn new<G>(gen: G) -> FiberGen<G> where
    G: Generator

Creates a fiber from the generator gen.

This type of fiber yields on each generator yield.