-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the task into separate functions for clarity. Completely handle every read() within a single loop iteration, even if it yields multiple data records. The main loop should be as simple as possible, and strictly follow this pattern: forever: wait for next event handle the events we got
- Loading branch information
1 parent
05cb651
commit c6e6244
Showing
1 changed file
with
116 additions
and
157 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