Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transforms/buffer"

Index

Functions

Functions

buffer

  • 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.

    Type parameters

    • T

      Type of items emitted by the observable.

    Parameters

    • notifier: Observable<unknown>

      Observable that emits when the buffer should be emitted.

    Returns Transform<T, T[]>

    Transform that emits arrays of items from the original observable.

Generated using TypeDoc