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