Skip to main content

createReplaySource

Types

function createReplaySource<GValue, GSource extends ISource<GValue>>(
source: GSource,
maxNumberOfValues: number = Number.POSITIVE_INFINITY,
): IReplaySource<GValue, GSource>

Definition

Creates a IReplaySource.

When calling createReplaySource you must provide a source which is used to build the ReplaySource. You may choose for example, between an IUnicastSource or a IMulticastSource.