public class AndroidSchedulers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static rx.Scheduler |
handlerThread(android.os.Handler handler)
Scheduler which uses the provided Handler to execute an action |
static rx.Scheduler |
mainThread()
Scheduler which will execute an action on the main Android UI thread. |
public static rx.Scheduler handlerThread(android.os.Handler handler)
Scheduler
which uses the provided Handler
to execute an actionhandler
- The handler that will be used when executing the actionpublic static rx.Scheduler mainThread()
Scheduler
which will execute an action on the main Android UI thread.Looper
based scheduler