addAll method

List<FutureOr> addAll(
  1. Iterable<TSyncOrAsyncMapper> functions, {
  2. Duration? buffer,
})

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

Implementation

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