FLUTTER ECOSYSTEM

agilord/executor

Executor de tarefa assíncrona para Dart

Capa do projeto executor
Stars
16
Forks
2
Último push (UTC)
13 de abr. de 2025
Status do projeto
Ativo
Agilord, LLC GitHub avatar
GITHUB Organization

Agilord, LLC ↗

LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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