Skip to content

IAsyncCollection

Defined in: packages/data/src/collection/iasync-collection.ts:13

The async-backed sibling of ICollection.

Every member mirrors its sync counterpart; the only additions are Promise wrapping and an optional AbortSignal, since anything that waits on I/O must be cancellable. Declared to prove the design composes — no concrete implementation exists yet.

  • AsyncIterable<T>

T

The type of elements in the collection. Anything except undefined.

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

Defined in: node_modules/.store/typescript-npm-6.0.3-585eecd158/package/lib/lib.es2018.asynciterable.d.ts:36

AsyncIterator<T, any, any>

AsyncIterable.[asyncIterator]


clear(signal?): Promise<void>

Defined in: packages/data/src/collection/iasync-collection.ts:16

AbortSignal

Promise<void>


count(signal?): Promise<number>

Defined in: packages/data/src/collection/iasync-collection.ts:14

AbortSignal

Promise<number>