FLUTTER ECOSYSTEM

agilord/executor

Dart 的非同步任務執行器

執行器 專案封面
Stars
16
Forks
2
最近推送(UTC)
2025年4月13日
專案狀態
未封存
Agilord, LLC GitHub avatar
GITHUB Organization

Agilord, LLC ↗

語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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