-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make event loop handle send errors correctly (#63)
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.
- Loading branch information
Showing
1 changed file
with
28 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters