StashBuffer
Esta página aún no está disponible en tu idioma.
Defined in: src/typed/Behavior.ts:113
Lightweight stash interface handed to Behaviors.withStash factories.
Thin wrapper over the OO context.stash() API so the typed DSL keeps
the same guarantees (FIFO, capacity, overflow error).
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”isEmpty
Section titled “isEmpty”
readonlyisEmpty:boolean
Defined in: src/typed/Behavior.ts:119
True if the buffer holds any message.
isFull
Section titled “isFull”
readonlyisFull:boolean
Defined in: src/typed/Behavior.ts:121
True if the buffer is at capacity.
readonlysize:number
Defined in: src/typed/Behavior.ts:123
Current number of stashed messages.
Methods
Section titled “Methods”stash()
Section titled “stash()”stash(
message):void
Defined in: src/typed/Behavior.ts:115
Stash the current message; must be called during a user message.
Parameters
Section titled “Parameters”message
Section titled “message”T
Returns
Section titled “Returns”void
unstashAll()
Section titled “unstashAll()”unstashAll():
void
Defined in: src/typed/Behavior.ts:117
Replay the buffered messages back onto the mailbox.
Returns
Section titled “Returns”void
