clearQueue static method
void
clearQueue()
Clears any queued (not yet started) tasks.
Implementation
static void clearQueue() {
for (final q in _queue) {
if (!q.started) {
q.task.cancel();
q.cancelWithResult();
}
}
_queue.removeWhere((e) => !e.started);
}