Interface: AsyncSequence<T>
Represents an asynchronous sequence of elements.
Extends
AsyncIterable
<T
>
Type Parameters
Type Parameter | Description |
---|---|
T | The 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.