executor 2.2.3 icon indicating copy to clipboard operation
executor: ^2.2.3 copied to clipboard

Executes async tasks with a configurable maximum concurrency and rate.

Async task executor for Dart #

Executes async tasks with a configurable maximum concurrency and rate.

Usage #

A simple usage example:

final executor = Executor(concurrency: 10);
// only 10 of them will be running at a time
for (var i = 0; i < 20; i++) {
  // ignore: unawaited_futures
  executor.scheduleTask(() async {
    // await longDatabaseTask()
    // await anotherProcessing()
  });
}
await executor.join(withWaiting: true);
await executor.close();
18
likes
140
pub points
84%
popularity

Publisher

verified publisher iconagilord.com

Executes async tasks with a configurable maximum concurrency and rate.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

stack_trace

More

Packages that depend on executor