-
public interface ThreadSwitcher
Common implementation for classes that exposes methods to execute tasks in the background or post tasks in the Main / UI thread.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
mainThread(Runnable runnable)
Posts the task in the Main / UI thread. abstract Unit
backgroundThread(Runnable runnable)
Enqueues the task to be run on a background thread. -
-
Method Detail
-
mainThread
abstract Unit mainThread(Runnable runnable)
Posts the task in the Main / UI thread.
-
backgroundThread
abstract Unit backgroundThread(Runnable runnable)
Enqueues the task to be run on a background thread.
-
-
-
-