Skip to content

Applies to

net10.0, netstandard2.0

public static IObservable<IChangeSet<TObject>> BufferInitial<TObject>(this IObservable<IChangeSet<TObject>> source, TimeSpan initialBuffer, IScheduler? scheduler = null) where TObject : notnull

View source

Summary: Buffers changesets during an initial time window, then emits a single combined changeset and passes through subsequent changes.

Type parameters

NameDescription
TObjectThe type of items in the list.

Parameters

NameTypeDescription
sourceIObservable>The source IObservable&lt;IChangeSet&lt;TObject&gt;&gt; to buffer during the initial loading period.
initialBufferTimeSpanThe TimeSpan time period (measured from first emission) during which changes are buffered.
scheduler = null[IScheduler?](#The [IScheduler](# for timing the buffer window.

Returns: IObservable> -- A list changeset stream where the initial burst is combined into one changeset.

Remarks

For a configured duration after the first emission, all changesets are buffered and combined into a single emission. After this initial window, subsequent changesets pass through immediately.

See also