method Source.prototype.withBufferSize
Source.prototype.withBufferSize(n: number): Source<T, E>

Sets the maximum number of buffered results before backpressure is applied to the stream. If the buffer is full, the stream will pause until there is space in the buffer for new results.

Parameters

n: number

Return Type

Source<T, E>

Usage

import { Source } from ".";