You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Return an asynchronous computation that, when run, will wait for a response to the given WebRequest.
82
75
[<System.Obsolete("The extension method now resides in the 'WebExtensions' module in the F# core library. Please add 'open Microsoft.FSharp.Control.WebExtensions' to access this method")>]
Copy file name to clipboardExpand all lines: src/FSharpx.Async/AsyncStreamReader.fs
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,13 @@ type AsyncStreamReader(stream:Stream, encoding:Encoding, detectEncodingFromByteO
34
34
35
35
ifnot stream.CanRead then
36
36
invalidArg "stream""stream not readable";
37
-
#if FX_NO_FILESTREAM_ISASYNC
38
-
#else
37
+
39
38
match stream with
40
39
|:? System.IO.FileStream as fs whennot fs.IsAsync ->
41
40
invalidArg "stream""FileStream not asynchronous. AsyncStreamReader should only be used on FileStream if the IsAsync property returns true. Consider passing 'true' for the async flag in the FileStream constructor"
0 commit comments