TaskManager

class TaskManager

Helper class to manage tasks running on background thread.

Author

Umang Chamaria Date: 09/06/20

Types

Companion
Link copied to clipboard
object Companion

Functions

addTaskToQueue
Link copied to clipboard
fun addTaskToQueue(task: ITask): Boolean
Attempts to add a task to the processing queue.
execute
Link copied to clipboard
fun execute(task: ITask): Boolean
Execute ITask immediately.
fun execute(job: Job): Boolean
Executes Job immediately
fun execute(work: Work)
Execute Work immediately
executeRunnable
Link copied to clipboard
fun executeRunnable(runnable: Runnable)
Execute a Runnable immediately.
startTask
Link copied to clipboard
fun startTask(task: ITask): Boolean
Tries to execute the task immediately.
submit
Link copied to clipboard
fun submit(task: ITask): Boolean
Submit a ITask to be executed in future.
fun submit(job: Job): Boolean
Submit a Job to be executed in future.
fun submit(runnable: Runnable)
Submit a Runnable to be executed in future.