Skip to main content

Interface: AsyncSequence<T>

Represents an asynchronous sequence of elements.

Extends

  • AsyncIterable<T>

Type Parameters

Type ParameterDescription
TThe type of elements in the sequence.

Methods

[asyncIterator]()

[asyncIterator](): AsyncIterator<T, any, undefined>

Returns

AsyncIterator<T, any, undefined>

Inherited from

AsyncIterable.[asyncIterator]

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:38


toArray()

toArray(): Promise<T[]>

Buffers the sequence into an array of type T.

Returns

Promise<T[]>

A promise that resolves with an array of type T.

Defined in

packages/verse-core/src/query/queryable.ts:123