FLUTTER ECOSYSTEM

agilord/executor

Asynchroner Task-Executor für Dart

Projektcover von Executor
Stars
16
Forks
2
Letzter Push (UTC)
13.04.2025
Projektstatus
Aktiv
Agilord, LLC GitHub avatar
GITHUB Organization

Agilord, LLC ↗

SprachenDart

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 3 Einträge

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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();

Links