executor 2.2.0 copy "executor: ^2.2.0" to clipboard
executor: ^2.2.0 copied to clipboard

outdated

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:

import 'dart:async';

import 'package:executor/executor.dart';

Future main() async {
  Executor executor = new Executor(concurrency: 10);
  // only 10 of them will be running at a time
  for (int i = 0; i < 20; i++) {
     executor.scheduleTask(() async {
       // await longDatabaseTask()
       // await anotherProcessing()
     });
  }
}
  • source code
  • contributors: Agilord
  • Related projects:
    • Alternative: the Dart team's pool library.
    • Database executor: db_executor (from the same authors as this projects)
27
likes
0
pub points
86%
popularity

Publisher

verified publisheragilord.com

Executes async tasks with a configurable maximum concurrency and rate.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

stack_trace

More

Packages that depend on executor