Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncIteratorResultInstance<Value>

Type parameters

  • Value

Hierarchy

Index

Interfaces

Type aliases

Constructors

Properties

Methods

Type aliases

Static ConstructorParam

ConstructorParam<Value>: AsyncIteratorResultLike<Value> | Executor<Value>

Type parameters

  • Value

Constructors

constructor

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Static Promise

Promise: PromiseConstructor

Methods

catch

  • catch<TResult>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<IteratorResultInstance<Value> | TResult>
  • Attaches a callback for only the rejection of the Promise.

    Type parameters

    • TResult = never

    Parameters

    • Optional onrejected: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null

      The callback to execute when the Promise is rejected.

    Returns Promise<IteratorResultInstance<Value> | TResult>

    A Promise for the completion of the callback.

finally

  • Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

    Parameters

    • Optional onfinally: (() => void) | undefined | null

      The callback to execute when the Promise is settled (fulfilled or rejected).

    Returns Promise<IteratorResultInstance<Value>>

    A Promise for the completion of the callback.

then

Generated using TypeDoc