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 |
from(android.os.Looper looper,
boolean async)
A
Scheduler which executes actions on looper. |
static Scheduler |
mainThread()
A
Scheduler which executes actions on the Android main thread. |
public static Scheduler mainThread()
Scheduler which executes actions on the Android main thread.public static Scheduler from(android.os.Looper looper)
Scheduler which executes actions on looper.public static Scheduler from(android.os.Looper looper, boolean async)
Scheduler which executes actions on looper.async - if true, the scheduler will use async messaging on API >= 16 to avoid VSYNC
locking. On API < 16 this value is ignored.Message.setAsynchronous(boolean)