diff --git a/src/core/Akka.FSharp/README.md b/src/core/Akka.FSharp/README.md index 200019160f2..d358f07166c 100644 --- a/src/core/Akka.FSharp/README.md +++ b/src/core/Akka.FSharp/README.md @@ -245,7 +245,7 @@ Example: match box msg with | :? FileInfo as fi -> let reader = new StreamReader(fi.OpenRead()) - reader.AsyncReadToEnd() |!> mailbox.Self + Async.AwaitTask (reader.ReadToEndAsync()) |!> mailbox.Self | :? string as content -> printfn "File content: %s" content | _ -> mailbox.Unhandled()