Skip to main content

Home > flowp > Channel > (constructor)

Channel.(constructor)

create a new channel with specified capacity

Signature:

constructor(capacity?: number);

Parameters

ParameterTypeDescription
capacitynumberchannel capacity, defaults to Infinity

Exceptions

RangeError - capacity is negative or NaN