Interface AsyncGenerator<T, TReturn, TNext>

interface AsyncGenerator<T, TReturn, TNext> {
    [asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
    next(...args): Promise<IteratorResult<T, TReturn>>;
    return(value): Promise<IteratorResult<T, TReturn>>;
    throw(e): Promise<IteratorResult<T, TReturn>>;
}

Type Parameters

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

Hierarchy (view full)

Methods