Class BufferingStream<T>

This component will buffer whatever is pushed to it and emit chunks back every BufferingStreamOptions.emitInterval. It will also ensure that the emitted chunks never exceed BufferingStreamOptions.maxChunkSize.

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

buffer?: T
concat: ((left, right) => T)

Type declaration

    • (left, right): T
    • Parameters

      • left: T
      • right: T

      Returns T

emitInterval: number
length: ((what) => number)

Type declaration

    • (what): number
    • Parameters

      • what: T

      Returns number

maxChunkSize: number
onDataEmitter: Emitter<T> = ...
slice: ((what, start?, end?) => T)

Type declaration

    • (what, start?, end?): T
    • Parameters

      • what: T
      • Optional start: number
      • Optional end: number

      Returns T

timeout?: Timeout

Accessors

Methods