Open Akamaozu opened 5 years ago
Problem: queue.consume does nothing if called after queue emits ready event
queue.consume
Reason: queue.consume always waits for ready event before executing, but ready event emits once
Solution: store ready event in a variable, so queue.consume can determine if it should wait for ready event or execute immediately
Problem:
queue.consume
does nothing if called after queue emits ready eventReason:
queue.consume
always waits for ready event before executing, but ready event emits onceSolution: store ready event in a variable, so
queue.consume
can determine if it should wait for ready event or execute immediately