enqueue method

void enqueue(
  1. Task task
)

Implementation

void enqueue(Task task) {
  _tasks.add(task);
  if (!_isRunning) {
    _isRunning = true;
    _executeTasks();
  }
}