Skip to content

Fix delayed consume - #100

Open
Akamaozu wants to merge 3 commits into
hunterloftis:masterfrom
Akamaozu:loftis-fix-delayed-consume
Open

Akamaozu wants to merge 3 commits into
hunterloftis:masterfrom
Akamaozu:loftis-fix-delayed-consume

Conversation

@Akamaozu

Copy link
Copy Markdown
Contributor

Problem: queue.consume does nothing if called after queue emits ready event

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant