Observable Scheduler Transformer

class ObservableSchedulerTransformer<T : Any>(    subscriberScheduler: Scheduler = Schedulers.io(),     observerScheduler: Scheduler = AndroidSchedulers.mainThread(),     delayError: Boolean = false) : ObservableTransformer<T, T>

Define scheduler to use for Observable

Parameters

T

object to subscribe

subscriberScheduler

scheduler to use when subscribing

observerScheduler

scheduler to use when observing

delayError

stop the stream when there's exception between item emitted

Constructors

Link copied to clipboard
fun ObservableSchedulerTransformer(    subscriberScheduler: Scheduler = Schedulers.io(),     observerScheduler: Scheduler = AndroidSchedulers.mainThread(),     delayError: Boolean = false)

Functions

Link copied to clipboard
open override fun apply(upstream: Observable<T>): ObservableSource<T>

Method to apply scheduler

Sources

Link copied to clipboard