Below are Eio translations of the code examples in Real World OCaml - Chapter 16. Concurrent Programming with Async. The section titles follow those in the book for easy cross-reference.
See dune-project
for dependencies.
Commands to run project
make dev # builds the ocaml project in watch mode, aliases `dune build -w`
make main # executes main.ml that runs all the examples, aliases `dune exec main`
dune exec server -- -p 8080 -uppercase false
dune exec search ocaml functionalprogramming monad
See lib/rwo_eio.ml
for all examples.
See bin/main.ml
to see how examples are used.