BatchFunction<T> typedef

BatchFunction<T> = Future<void> Function(List<T> tasks)

A function type that processes a batch of tasks.

Takes a list of tasks of type T and returns a Future that completes when the batch has been processed.

Implementation

typedef BatchFunction<T> = Future<void> Function(List<T> tasks);