-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support asynchronous file I/O on Windows #14321
Support asynchronous file I/O on Windows #14321
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Is this the first case of windows functionality being better than the libevent based one?
end | ||
|
||
bytes_read.to_i64 | ||
def self.pread(file, buffer, offset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is high time to rename this method as the name refers to a libc call that isn't used on this OS.
read_with_offset
perhaps?
@HertzDevil is this ready for review? |
missing specs |
All the progress here has been split into individual PRs that work with the refactored IOCP interface; closing |
Since #14255, it is now possible to open non-blocking
File
s on Windows, as previously their blocking mode could not be changed after initialization. This PR makes operations on thoseFile
s actually work.