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

outdatedDart 1 only

Executes async tasks with a configurable maximum concurrency and rate.

example/example.dart

// Copyright (c) 2017, Agilord. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

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()
    });
  }
}
27
likes
40
pub points
86%
popularity

Publisher

verified publisheragilord.com

Executes async tasks with a configurable maximum concurrency and rate.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dart2_constant

More

Packages that depend on executor