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

Add note about initializing a FileStream for async reading/writing #33

Open
sveinungf opened this issue Nov 18, 2018 · 3 comments
Open

Comments

@sveinungf
Copy link

Hi, maybe this is worth mentioning. Basically, the FileOptions.Asynchronous flag should be passed when creating a FileStream (e.g. with File.Create), otherwise the actual I/O operations are performed synchronously. More info.

@davidfowl
Copy link
Owner

davidfowl commented Nov 18, 2018

Good one! Even though FileStream is still a disaster when it comes to async IO

@yahorsi
Copy link

yahorsi commented Nov 18, 2019

Same sockets?

@davidfowl
Copy link
Owner

Sockets are fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants