Single Scheduler Transformer

class SingleSchedulerTransformer<T : Any>(subscriberScheduler: Scheduler = Schedulers.io(), observerScheduler: Scheduler = AndroidSchedulers.mainThread()) : SingleTransformer<T, T>

Define scheduler to use for Single

Parameters

subscriberScheduler

scheduler to use when subscribing

observerScheduler

scheduler to use when observing

Constructors

Link copied to clipboard
fun SingleSchedulerTransformer(subscriberScheduler: Scheduler = Schedulers.io(), observerScheduler: Scheduler = AndroidSchedulers.mainThread())

Functions

Link copied to clipboard
open override fun apply(upstream: Single<T>): SingleSource<T>

Method to apply scheduler

Sources

Link copied to clipboard