Class POBTaskHandler
-
- All Implemented Interfaces:
public final class POBTaskHandlerSingleton implementation for TaskHandler, This class is responsible for executing the task on main thread using POBMainThreadExecutor or background thread using POBBackgroundThreadExecutor. Use runnable/task on runOnMainThread, if you want to dispatch your task on MainThread. Use runnable/task on runOnBackgroundThread, if you want to dispatch your task on BackgroundThread.
-
-
Method Summary
Modifier and Type Method Description final UnitrunOnMainThread(Runnable runnable)Execute the runnable on main thread. final UnitrunOnBackgroundThread(Runnable runnable)Execute the runnable on background thread. final static POBTaskHandlergetInstance()Get the instance of POBTaskHandler -
-
Method Detail
-
runOnMainThread
final Unit runOnMainThread(Runnable runnable)
Execute the runnable on main thread.
-
runOnBackgroundThread
final Unit runOnBackgroundThread(Runnable runnable)
Execute the runnable on background thread.
-
getInstance
final static POBTaskHandler getInstance()
Get the instance of POBTaskHandler
-
-
-
-