IAsyncLossyStack
Defined in: packages/data/src/stack/iasync-lossy-stack.ts:7
The async-backed sibling of ILossyStack.
Extends
Section titled “Extends”Omit<IAsyncStack<T>,"push"|"pushAll">.ILossy
Type Parameters
Section titled “Type Parameters”T extends DefinedValue = DefinedValue
Properties
Section titled “Properties”capacity
Section titled “capacity”
readonlycapacity:number
Defined in: packages/data/src/collection/ibounded.ts:17
The maximum number of elements the collection can hold.
Note: Infinity is not a legal value here — an unbounded type omits this
mixin.
Inherited from
Section titled “Inherited from”overflowPolicy
Section titled “overflowPolicy”
readonlyoverflowPolicy:OverflowPolicy
Defined in: packages/data/src/collection/ilossy.ts:20
Policy applied when the collection reaches its capacity.
Inherited from
Section titled “Inherited from”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”Omit.[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>
Inherited from
Section titled “Inherited from”Omit.clear
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>
Inherited from
Section titled “Inherited from”Omit.count
pop(
signal?):Promise<T|undefined>
Defined in: packages/data/src/stack/iasync-stack.ts:18
Parameters
Section titled “Parameters”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<T | undefined>
Inherited from
Section titled “Inherited from”Omit.pop
push()
Section titled “push()”push(
item,signal?):Promise<readonlyT[]>
Defined in: packages/data/src/stack/iasync-lossy-stack.ts:9
Parameters
Section titled “Parameters”T
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<readonly T[]>
pushAll()
Section titled “pushAll()”pushAll(
items,signal?):Promise<readonlyT[]>
Defined in: packages/data/src/stack/iasync-lossy-stack.ts:11
Parameters
Section titled “Parameters”Iterable<T>
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<readonly T[]>
top(
signal?):Promise<T|undefined>
Defined in: packages/data/src/stack/iasync-stack.ts:20
Parameters
Section titled “Parameters”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<T | undefined>
Inherited from
Section titled “Inherited from”Omit.top