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

outdatedDart 1 only

Executes async tasks concurrently with a configurable parallelism limit. This is an alternative implementation of package `pool` with fewer tests but with streaming support.

Async task executor for Dart #

Executes async tasks concurrently with a configurable parallelism limit.

This is an alternative implementation of the Dart team's pool library with fewer tests, but with streaming support.

It will get deprecated in favor of pool once it reaches feature parity.

Usage #

A simple usage example:

import 'dart:async';

import 'package:executor/executor.dart';

Future main() async {
  Executor executor = new Executor(limit: 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()
     });
  }
}
26
likes
0
pub points
85%
popularity

Publisher

verified publisheragilord.com

Executes async tasks concurrently with a configurable parallelism limit. This is an alternative implementation of package `pool` with fewer tests but with streaming support.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on executor