executor 2.0.0
executor: ^2.0.0 copied to clipboard
Executes async tasks with a configurable maximum concurrency and rate.
Changelog #
@@ 2.0.0
- Supporting Dart 2 only.
1.0.1 #
- Dart2 compatibility with
package:dart2_constant.
1.0.0 #
Breaking changes
- Removed deprecated member
limit. - Renamed
ExecutorTask->AsyncTask, return value toFutureOr. - Renamed
Rate.limit->Rate.maximum.
New features
- Added
Executor.onChange. Clients can use this to monitor the currentscheduledCountand queue more tasks to ensureExecutoris running on full capacity.
Housekeeping
- Added example.
- Added a few tests.
0.1.2 #
- Expose internal stats:
runningCount,waitingCount,scheduledCount. - Enable sync-points with
join(), which allows to track the completion of the currently running (and optionally the waiting) tasks.