Flowable Scheduler Transformer

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

Define scheduler to use for Flowable

Parameters

T

object to subscribe

subscriberScheduler

scheduler to use when subscribing

observerScheduler

scheduler to use when observing

delayError

keep the observer even when there's exception

Constructors

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

Functions

Link copied to clipboard
open override fun apply(upstream: Flowable<T>): Publisher<T>

Method to apply scheduler

Sources

Link copied to clipboard