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

fix: make event loop handle send errors correctly #63

Merged
merged 2 commits into from
Jul 14, 2024
Merged

Conversation

joshka
Copy link
Member

@joshka joshka commented Jul 13, 2024

When the crossterm event stream is dropped, or the application event
channel is dropped, the event loop now correctly exits.

If the init event fails to send, the application will likely not work
correctly, so the event loop now panics if the init event fails to send.

Refactored the event loop to make it easier to read and understand.

When the crossterm event stream is dropped, or the application event
channel is dropped, the event loop now correctly exits.

If the init event fails to send, the application will likely not work
correctly, so the event loop now panics if the init event fails to send.

Refactored the event loop to make it easier to read and understand.
Copy link
Contributor

@kdheepak kdheepak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! LGTM

@joshka joshka merged commit dbb8e5c into main Jul 14, 2024
3 checks passed
@joshka joshka deleted the jm/fix-event-loop branch July 14, 2024 04:17
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.

2 participants