public final class AndroidSchedulers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Scheduler |
from(android.os.Looper looper)
A
Scheduler which executes actions on looper . |
static Scheduler |
mainThread()
A
Scheduler which executes actions on the Android UI thread. |
static void |
reset()
Resets the current
AndroidSchedulers instance. |
public static Scheduler mainThread()
Scheduler
which executes actions on the Android UI thread.public static Scheduler from(android.os.Looper looper)
Scheduler
which executes actions on looper
.@Experimental public static void reset()
AndroidSchedulers
instance.
This will re-init the cached schedulers on the next usage,
which can be useful in testing.