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