rxjs / 7.5.5 / api / index / function / scheduled.html /

scheduled

function stable

Converts from a common ObservableInput type to an observable where subscription and emissions are scheduled on the provided scheduler.

scheduled<T>(input: ObservableInput<T>, scheduler: SchedulerLike): Observable<T>

Parameters

input ObservableInput<T>

The observable, array, promise, iterable, etc you would like to schedule

scheduler SchedulerLike

The scheduler to use to schedule the subscription and emissions from the returned observable.

Returns

Observable<T>

See Also

© 2015–2022 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/function/scheduled