Interface AsyncGenerator<T, TReturn, TNext>

interface 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>>;
    [asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
    [asyncDispose](): PromiseLike<void>;
    [asyncDispose](): PromiseLike<void>;
}

Type Parameters

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

Hierarchy

Methods

  • Parameters

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

    Returns Promise<IteratorResult<T, TReturn>>

  • Returns PromiseLike<void>

  • Returns PromiseLike<void>