Interface AsyncIterator<T, TReturn, TNext>

Type Parameters

  • T

  • TReturn = any

  • TNext = undefined

Hierarchy

Methods

Methods

  • NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.

    Parameters

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

    Returns Promise<IteratorResult<T, TReturn>>

  • Parameters

    Returns Promise<IteratorResult<T, TReturn>>

  • Parameters

    • Optional e: any

    Returns Promise<IteratorResult<T, TReturn>>