Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework waitForOutputEvent to not miss events #242

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

jonahgraham
Copy link
Contributor

The code used to do this.once('output') in a tight loop, but this meant that between processing one of the iterations and the next iteration of the loop a message may have been output. Instead use this.on('output') so all messages are processed.

Prerequisite for #239 which generates multiple events quickly

The code used to do this.once('output') in a tight loop,
but this meant that between processing one of the iterations
and the next iteration of the loop a message may have
been output. Instead use this.on('output') so all messages
are processed.

Prerequisite for eclipse-cdt-cloud#239 which generates multiple events quickly
@jonahgraham jonahgraham merged commit 6d71ff0 into eclipse-cdt-cloud:main Feb 1, 2023
@jonahgraham jonahgraham deleted the prereq_239 branch February 1, 2023 03:25
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