Class OutgoingBuffer<I>

Source
Expand description

An outgoing buffer that stages items until the next flush.

Items are placed here and, on take, merged into an item map keyed by item type.

Constructors§

§

new OutgoingBuffer<I extends Item>(): OutgoingBuffer<I>

Methods§

Source§

place(item: I): void

Source§

take(merge: (items: I[]) => ItemMap<I>): ItemMap<I> | undefined