We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 510b646 commit a115161Copy full SHA for a115161
modules/util/AsyncQueue.js
@@ -34,7 +34,11 @@ export default class AsyncQueue {
34
*/
35
clear() {
36
for (const finishedCallback of this._taskCallbacks.values()) {
37
+ try {
38
finishedCallback(new ClearedQueueError('The queue has been cleared'));
39
+ } catch (error) {
40
+ logger.error('Error in callback while clearing the queue:', error);
41
+ }
42
}
43
this._queue.kill();
44
0 commit comments