Skip to content

Documentation / @eventkit/base / takeUntil

Function: takeUntil()

ts
function takeUntil<T>(stopNotifier): OperatorFunction<T, T>

Emits values from the source observable until the stopNotifier observable emits a value. Once the stopNotifier emits, the resulting observable completes and no more values will be emitted.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
stopNotifierAsyncObservable<any>An observable that signals when to stop taking values from the source.

Returns

OperatorFunction<T, T>

Released under the MIT License.