-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor IO::Syscall as IO::Evented (#7505)
Evented is closer to what the module is trying to achieve (abstract event loop details) than Syscall. Reuses the method namings from IO::Buffered (e.g. `evented_read` instead of `read_syscall_helper`). Avoids some duplication found in IO::FileDescriptor (system/unix) and Socket. Isolates implementation details back into IO::Evented, instead of having direct accesses to internal implementation details (such as `@writers`) of IO::Evented.
- Loading branch information
1 parent
d0dc06b
commit f9fde1a
Showing
5 changed files
with
87 additions
and
151 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
require "./syscall" | ||
require "crystal/system/file_descriptor" | ||
|
||
# An `IO` over a file descriptor. | ||
|
Oops, something went wrong.