-
public class RxAndroidSchedulersHook
-
-
Method Summary
Modifier and Type Method Description static RxAndroidSchedulersHook
getDefaultInstance()
Scheduler
getMainThreadScheduler()
Scheduler to return from mainThread or {@code null}
if defaultshould be used.Action0
onSchedule(Action0 action)
Invoked before the Action is handed over to the scheduler. -
-
Method Detail
-
getDefaultInstance
static RxAndroidSchedulersHook getDefaultInstance()
-
getMainThreadScheduler
Scheduler getMainThreadScheduler()
Scheduler to return from mainThread or
{@code null}
if defaultshould be used.This instance should be or behave like a stateless singleton.
-
onSchedule
Action0 onSchedule(Action0 action)
Invoked before the Action is handed over to the scheduler. Can be used forwrapping/decorating/logging. The default is just a passthrough.
- Parameters:
action
- action to schedule
-
-
-
-