Class AsyncGeneratorWithSetup<S, T, TReturn, TNext>

Type Parameters

  • S = unknown

  • T = unknown

  • TReturn = unknown

  • TNext = unknown

Hierarchy

  • AsyncGeneratorWithSetup

Implements

  • AsyncGenerator<T, TReturn, TNext>

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • S = unknown

    • T = unknown

    • TReturn = unknown

    • TNext = unknown

    Parameters

    • generator: AsyncGenerator<T, any, unknown>
    • Optional startSetup: (() => Promise<S>)
        • (): Promise<S>
        • Returns Promise<S>

    Returns AsyncGeneratorWithSetup<S, T, TReturn, TNext>

Properties

setup: Promise<S>

Methods

  • Parameters

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

    Returns Promise<IteratorResult<T, any>>

  • Parameters

    • value: TReturn | PromiseLike<TReturn>

    Returns Promise<IteratorResult<T, any>>

  • Parameters

    • e: Error

    Returns Promise<IteratorResult<T, any>>

Generated using TypeDoc