subscribeOn

Asynchronously subscribes Observers to this Observable on the specified SchedulerLike.

subscribeOn<T>(scheduler: SchedulerLike, delay: number = 0): MonoTypeOperatorFunction<T>

Parameters

scheduler

The SchedulerLike to perform subscription actions on.

delay

Optional. Default is 0.

Type: number.

Returns

MonoTypeOperatorFunction<T>: The source Observable modified so that its subscriptions happen on the specified SchedulerLike. .

Description