Documentation / @eventkit/base / withScheduler
Function: withScheduler()
ts
function withScheduler<T>(scheduler): OperatorFunction<T, T>
Applies a scheduler to an observable that passes side effects to the source observable, but defers the execution to the scheduler provided in the parameters. Use this when you want to control the execution of side effects independently of the source observable.
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type | Description |
---|---|---|
scheduler | SchedulerLike | The scheduler to defer execution to. |
Returns
OperatorFunction
<T
, T
>