destroyAllActiveTasks method

void destroyAllActiveTasks(
  1. String ignoreId
)

Destroys all active tasks in each thread, except the task with the given ignoreId.

ignoreId - The ID of the task that should not be destroyed.

Implementation

void destroyAllActiveTasks(String ignoreId) {
  for (var thread in threads) {
    thread.destroyActiveTasks(ignoreId);
  }
}