destroyActiveTasks method

  1. @override
void destroyActiveTasks(
  1. String ignoreTaskId
)
override

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});
}