Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/stream_observables/transforms/mod.ts>buffer

A collection of observables built with ReadableStreams & friends.
Latest
function buffer
Re-export
import { buffer } from "https://deno.land/x/stream_observables@v1.3/transforms/mod.ts";

Collects items from the original observable into buffers until the notifier emits. If no items have been buffered since the last time the notifier emitted, nothing will be emitted. Closing the emitter will emit the remaining buffer.

Parameters

notifier: Observable<unknown>

Observable that emits when the buffer should be emitted.

Returns

Transform that emits arrays of items from the original observable.