Skip to content

Commit

Permalink
Merge pull request ocaml-multicore#717 from talex5/read-all-hint
Browse files Browse the repository at this point in the history
README: explain that read_all reads until shutdown
  • Loading branch information
talex5 authored Mar 23, 2024
2 parents 14ae3cf + 12530eb commit 911ccc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ let run_client ~net ~addr =
Switch.run ~name:"client" @@ fun sw ->
traceln "Client: connecting to server";
let flow = Eio.Net.connect ~sw net addr in
(* Read all data until end-of-stream (shutdown): *)
traceln "Client: received %S" (Eio.Flow.read_all flow)
```

Expand Down

0 comments on commit 911ccc8

Please sign in to comment.