destroyActiveTasks method
Destroys all active tasks in the thread, except the task with the given ignoreTaskId
.
ignoreTaskId
- The ID of the task that should not be destroyed.
Implementation
@override
void destroyActiveTasks(String ignoreTaskId) async {
worker.postMessage({
'mode': 'destroyActiveTasks',
'ignoreTaskId': ignoreTaskId,
});
}