Summary

Buffer received events. Events are released after n events have been received or t time has passed. Both parameters are configurable in Settings -> Parameters.

Processing events in groups can in certain circumstances be cheaper than processing each event one at a time. For example, APIs can be billed per request, thus if multiple events can be handled in single request costs are minimized. Buffering enables many small tasks be grouped so that they may be processed together.


Ports

The events received on the in port are buffered.

When the buffer reaches it's maximum capacity or time limit, the events are released on the out port.

Input/Output Format

Any values are accepted as input.

The output will be an array of the buffered events.

Events

This function does not listen for, nor emits any events.

Other

Buffered events are released before the containing app is stopped, to ensure they are processed.

Examples

A video tutorial can be found here.