queue method

void queue(
  1. BurstRunner runner
)

Implementation

void queue(BurstRunner runner) {
  _active++;
  _total++;
  _queue.add(runner().then((value) {
    _active--;
    _completed++;
  }));
}