public class RxUtils
extends java.lang.Object
| Constructor and Description |
|---|
RxUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> <any> |
applyCustomSchedulers(android.os.Handler subscribeHandler)
Apply the subscribeOn/observeOn transformation of {custom_handler}/mainThread
to an observable via compose()
|
static <T> <any> |
applyCustomSchedulers(android.os.Handler subscribeHandler,
android.os.Handler observeHandler)
Apply the subscribeOn/observeOn transformation of computation/mainThread
to an observable via compose()
|
static <T> <any> |
applyIOSchedulers()
Apply the subscribeOn/observeOn transformation of io/mainThread
to an observable via compose()
|
static <T> <any> |
applyWorkSchedulers()
Apply the subscribeOn/observeOn transformation of computation/mainThread
to an observable via compose()
|
public static <T> <any> applyIOSchedulers()
Apply the subscribeOn/observeOn transformation of io/mainThread to an observable via compose()
Only apply this to observables that are handling I/O work, e.g.; Networking, Database, etc...
T - the transformation typepublic static <T> <any> applyWorkSchedulers()
Apply the subscribeOn/observeOn transformation of computation/mainThread to an observable via compose()
Only apply this to observables that are handling computation tasks in the background. Basically all non-IO work
T - the transformation typepublic static <T> <any> applyCustomSchedulers(android.os.Handler subscribeHandler)
Apply the subscribeOn/observeOn transformation of {custom_handler}/mainThread to an observable via compose()
Only apply this to observables that are handling computation tasks in the background. Basically all non-IO work
T - the transformation typepublic static <T> <any> applyCustomSchedulers(android.os.Handler subscribeHandler,
android.os.Handler observeHandler)
Apply the subscribeOn/observeOn transformation of computation/mainThread to an observable via compose()
Only apply this to observables that are handling computation tasks in the background. Basically all non-IO work
T - the transformation type