burst 1.0.0 burst: ^1.0.0 copied to clipboard
Lots of threading tools for executing jobs in parallel in various ways.
Lots of threading tools for executing jobs in parallel in various ways.
Usage #
MultiBurst burst = MultiBurst(threadCount: 8);
burst.queue(() => expensiveCall());
burst.queue(() => expensiveCall());
burst.queue(() => expensiveCall());
burst.flush();
// Keep flushing until all jobs are done.
burst.flushAll();
// Stop threads
burst.close();