Skip to main content

Module buffer

Module buffer 

Source
Expand description

Buffer operators — collect and batch reactive values.

§Operators

  • buffer — notifier-triggered flush of accumulated DATA handles.
  • buffer_count — fixed-count flush.
  • window — notifier-triggered sub-node splitting.
  • window_count — count-based sub-node splitting.

Functions§

buffer
Buffers source DATA handles; flushes as a packed array when notifier emits DATA.
buffer_count
Fixed-size buffer. Accumulate DATA handles; emit packed array every count items.
window
Splits source into sub-nodes triggered by notifier. Each “window” is a fresh state node created via Core::register_state(). The operator emits the inner node’s NodeId as a handle via binding.intern_node(inner_id).
window_count
Like window but closes window every count DATA items.