AsyncQueue.autoStart constructor
initialize auto queue
which will execute the job when it added into the queue if there is an executing job, the new will have to wait for its turn
Implementation
factory AsyncQueue.autoStart({
bool? allowDuplicate,
bool? throwIfDuplicate,
}) =>
AsyncQueue(
allowDuplicate: allowDuplicate ?? true,
throwIfDuplicate: throwIfDuplicate ?? false,
).._autoRun = true;