TaskManager

class TaskManager(size: Int)

线程安全的任务管理器

Author

空梦

Constructors

Link copied to clipboard
constructor(size: Int)

Functions

Link copied to clipboard
fun add(index: Int, task: Runnable)

添加一个任务

Link copied to clipboard
fun removeTask(index: Int, task: Runnable)

移除指定任务

Link copied to clipboard
fun runTaskList(index: Int)

在当前线程执行并删除指定任务列表中的所有任务

Link copied to clipboard

在当前线程中执行指定任务列表中的所有任务