close method Null safety
close the queue so that no more job can be added
Implementation
void close() {
_isClosed = true;
_emitEvent(QueueEventType.queueClosed);
}
close the queue so that no more job can be added
void close() {
_isClosed = true;
_emitEvent(QueueEventType.queueClosed);
}