pub fn new(generator: G) -> GeneratorTask<G> {
        GeneratorTask {
            generator,
            _pin: PhantomPinned,
        }
    }
/// Wraps a Generator in a Task. `generator.resume()` must've never been called before handing
/// it to this function.
///
/// **Warning:** This function is actually unsafe if `generator.resume()` has already been
/// called. It is not marked as so to simplify the syntax for the callers.
Wraps a Generator in a Task. `generator.resume()` must've never been called before handing
it to this function.

This function is actually unsafe if `generator.resume()` has already been
called. It is not marked as so to simplify the syntax for the callers.
Wraps a Generator in a Task . ` generator . resume () ` must ' ve never been called before handing it to this function . This function is actually unsafe if ` generator . resume () ` has already been called . It is not marked as so to simplify the syntax for the callers .
pub fn new(generator: G) -> GeneratorTask<G> {
        GeneratorTask {
            generator,
            _pin: PhantomPinned,
        }
    }
pub fn new ( generator : G ) -> GeneratorTask < G > { GeneratorTask { generator , _pin : PhantomPinned , } }
Wraps a Generator in a Task.
Wraps a Generator in a Task .
generator
G
generator
G