AspNetCoreDiagnosticScenarios icon indicating copy to clipboard operation
AspNetCoreDiagnosticScenarios copied to clipboard

Add note about initializing a FileStream for async reading/writing

Open sveinungf opened this issue 5 years ago • 3 comments

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.

sveinungf avatar Nov 18 '18 22:11 sveinungf

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

davidfowl avatar Nov 18 '18 23:11 davidfowl

Same sockets?

yahorsi avatar Nov 18 '19 10:11 yahorsi

Sockets are fine.

davidfowl avatar Mar 21 '21 18:03 davidfowl