Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T = unknown

Hierarchy

  • default

Index

Constructors

  • new default<T>(values?: Iterable<T>): default<T>

Properties

buffer: T[]

Buffer of added values

isAsyncIteratorInvoked: boolean

True, if an asynchronous iterator from Symbol.asyncIterator was called

pendingPromise: Nullable<ControllablePromise<T>>

Current pending promise that resolves when a new value is added

Accessors

  • get isOpened(): boolean

Methods

  • [asyncIterator](): AsyncIterableIterator<T>
  • [iterator](): IterableIterator<T>
  • add(value: T): void
  • close(): void
  • destroy<R>(reason?: R): void