Skip to main content

Buffer By

Buffers all values from the input stream and flushes the buffer on each event from the flush stream. Also, peeks at the buffer on each event from the peek stream without flushing it.

component image

In-ports

input <any> — input events to buffer.

flush <any> — events to flush the buffer.

peek <any> — events to peek at the buffer.

Out-ports

output <Array> — Outputs an array of buffered values.

Overview

The Buffer By operator buffers all values from the input stream and flushes the buffer on each event from the flush stream. You can also use the peek port to peek at the buffer without flushing it.

buffer by overview

To reset the buffer without outputting its contents, send a RESET signal to the input port.

The operator will emit [] in cases where the buffer is supposed to be flushed but is empty.

Settings

No additional configuration is required.