executor

Last updated:

0 purchases

executor Image
executor Images
Add to Cart

Description:

executor

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();
copied to clipboard
Links #

source code
contributors: Agilord
Related projects:

Alternative: the Dart team's pool library.
PostgreSQL connection pool: postgres_pool.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.