HandlerExecutor
HandlerExecutor internally manages a HandlerThread instance that will be used to execute incoming tasks in Executor.execute. HandlerExecutors are useful in places where an active Looper is required on the created Thread. The HandlerThread is assigned Process.THREAD_PRIORITY_BACKGROUND and should be only used to execute tasks with low priority.
Notes: The HandlerExecutor's internal HandlerThread event loop is stopped when close is called.
As a good practice, always `close` the executor when it is no longer required.
Parameters
tag
The thread name of the handler thread that will be created.
Constructors
HandlerExecutor
Link copied to clipboard
The thread name of the handler thread that will be created.