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.
Extends
Section titled “Extends”AsyncIterable<T>
Extended by
Section titled “Extended by”IAsyncDequeIAsyncHeapIAsyncListIAsyncMapIAsyncMultimapIAsyncMultisetIAsyncPriorityQueueIAsyncQueueIAsyncSetIAsyncStack
Type Parameters
Section titled “Type Parameters”T
The type of elements in the collection. Anything except
undefined.
Methods
Section titled “Methods”[asyncIterator]()
Section titled “[asyncIterator]()”[asyncIterator]():
AsyncIterator<T,any,any>
Defined in: node_modules/.store/typescript-npm-6.0.3-585eecd158/package/lib/lib.es2018.asynciterable.d.ts:36
Returns
Section titled “Returns”AsyncIterator<T, any, any>
Inherited from
Section titled “Inherited from”AsyncIterable.[asyncIterator]
clear()
Section titled “clear()”clear(
signal?):Promise<void>
Defined in: packages/data/src/collection/iasync-collection.ts:16
Parameters
Section titled “Parameters”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>
count()
Section titled “count()”count(
signal?):Promise<number>
Defined in: packages/data/src/collection/iasync-collection.ts:14
Parameters
Section titled “Parameters”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<number>