public final class AndroidSchedulers extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.reactivex.rxjava3.core.Scheduler |
from(Looper looper)
A
Scheduler which executes actions on looper. |
static io.reactivex.rxjava3.core.Scheduler |
from(Looper looper,
boolean async)
A
Scheduler which executes actions on looper. |
static io.reactivex.rxjava3.core.Scheduler |
mainThread()
A
Scheduler which executes actions on the Android main thread. |
public static io.reactivex.rxjava3.core.Scheduler mainThread()
Scheduler which executes actions on the Android main thread.
The returned scheduler will post asynchronous messages to the looper by default.
from(Looper, boolean)public static io.reactivex.rxjava3.core.Scheduler from(Looper looper)
Scheduler which executes actions on looper.
The returned scheduler will post asynchronous messages to the looper by default.
from(Looper, boolean)public static io.reactivex.rxjava3.core.Scheduler from(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)