Interface AsyncGenerator<T, TReturn, TNext>

interface AsyncGenerator<T, TReturn, TNext> {
    [asyncDispose](): PromiseLike<void>;
    [asyncDispose](): PromiseLike<void>;
    [asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
    next(...__namedParameters: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
    return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
    throw(e: any): Promise<IteratorResult<T, TReturn>>;
}

Type Parameters

  • T = unknown
  • TReturn = any
  • TNext = any

Hierarchy

Methods

  • Returns PromiseLike<void>

  • Returns PromiseLike<void>

  • Parameters

    • Rest...__namedParameters: [] | [TNext]

    Returns Promise<IteratorResult<T, TReturn>>