AsyncQueue constructor

AsyncQueue({
  1. bool allowDuplicate = true,
  2. bool throwIfDuplicate = false,
})

initialize normal queue

which require user to explicitly call start() in order to execute all the jobs in the queue

Implementation

AsyncQueue({
  this.allowDuplicate = true,
  this.throwIfDuplicate = false,
}) : assert(throwIfDuplicate ? !allowDuplicate : true);