StashBuffer
Defined in: src/typed/Behavior.ts:70
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:76
True if the buffer holds any message.
isFull
Section titled “isFull”
readonlyisFull:boolean
Defined in: src/typed/Behavior.ts:78
True if the buffer is at capacity.
readonlysize:number
Defined in: src/typed/Behavior.ts:80
Current number of stashed messages.
Methods
Section titled “Methods”stash()
Section titled “stash()”stash(
message):void
Defined in: src/typed/Behavior.ts:72
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:74
Replay the buffered messages back onto the mailbox.
Returns
Section titled “Returns”void