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

Support asynchronous file I/O on Windows #14321

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

HertzDevil
Copy link
Contributor

Since #14255, it is now possible to open non-blocking Files on Windows, as previously their blocking mode could not be changed after initialization. This PR makes operations on those Files actually work.

Copy link
Contributor

@yxhuvud yxhuvud left a 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)
Copy link
Contributor

@yxhuvud yxhuvud Feb 25, 2024

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?

@beta-ziliani
Copy link
Member

@HertzDevil is this ready for review?

@HertzDevil
Copy link
Contributor Author

missing specs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

None yet

3 participants