Generator import { Generator } from "destack:async"; Generator object. A generator body runs on its own fiber; each step wakes the body with the consumer request and blocks the consumer until the body yields or returns. export class Generator { next(value: N | undefined): GeneratorResult; return(value: R): GeneratorResult; } language/library/src/async/generator.ds:17:43 Members next(value: N | undefined): GeneratorResult Advance the generator with one value. return(value: R): GeneratorResult Finalize the generator and return the completion value.