Skip to content

Commit

Permalink
Update Akka.FSharp README Interop with Task Parallel Library Example (a…
Browse files Browse the repository at this point in the history
…kkadotnet#7440)

`System.IO.StreamReader` method name has changed to `ReadToEndAsync`
`|!>` requires `System.Threading.Tasks.Task` to be wrapped by `Async.AwaitTask`
  • Loading branch information
jasonmar authored Jan 2, 2025
1 parent 90e60c6 commit 08dd5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Akka.FSharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 08dd5bd

Please sign in to comment.