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 {
await readyState.future;
sendPort.send({'mode': 'destroyActiveTasks', 'ignoreTaskId': ignoreTaskId});
}