From aa8402a2d5a41a608a6e51ddb60d2806324633ad Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 22 Jun 2024 03:48:08 +0900 Subject: [PATCH] Change FileStream to be async by default --- .../System.Private.CoreLib/src/System/IO/FileStream.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/IO/FileStream.cs b/src/libraries/System.Private.CoreLib/src/System/IO/FileStream.cs index a7f6aaecb5b85..90234962a5838 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IO/FileStream.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IO/FileStream.cs @@ -14,7 +14,7 @@ public class FileStream : Stream { internal const int DefaultBufferSize = 4096; internal const FileShare DefaultShare = FileShare.Read; - private const bool DefaultIsAsync = false; + private const bool DefaultIsAsync = true; private readonly FileStreamStrategy _strategy;