addAll<T> method

List<FutureOr<T>> addAll<T>(
  1. Iterable<FutureOr<T> Function(dynamic previous)> functions, {
  2. Duration? buffer,
})

Adds multiple functions to the queue for sequential execution. See add.

Implementation

List<FutureOr<T>> addAll<T>(
  Iterable<FutureOr<T> Function(dynamic previous)> functions, {
  Duration? buffer,
}) {
  final results = <FutureOr<T>>[];
  for (final function in functions) {
    results.add(add(function, buffer: buffer));
  }
  return results;
}