You can revoke a task and obtain the task priority.
| 接口 | 说明 |
|---|---|
| Revocable |
Revokes an asynchronous task that is dispatched by calling
TaskDispatcher.asyncDispatch(java.lang.Runnable),
TaskDispatcher.delayDispatch(java.lang.Runnable, long), or
TaskDispatcher.asyncGroupDispatch(ohos.app.dispatcher.Group, java.lang.Runnable). |
| 枚举 | 说明 |
|---|---|
| TaskPriority |
Specifies the priority of all tasks in a specific task dispatcher when the task dispatcher is being obtained or
created.
|