addAllTasks method

void addAllTasks(
  1. Iterable<Task<T>> newTasks
)

Adds multiple Task objects to the end of the queue.

Throws an AssertionError if the batch is currently executing.

Implementation

void addAllTasks(Iterable<Task<T>> newTasks) {
  _ifNotExecuting(() => tasks.addAll(newTasks));
}