Add a note about pread

This commit is contained in:
Calascibetta Romain 2024-11-08 11:32:00 +01:00
parent 806ea63152
commit 0097be6ae6

View file

@ -55,6 +55,7 @@ let () = Lwt_main.run begin
For the second point, only OCaml 5 and effects can answer this issue by using an
effect which will notify the scheduler to read the page **in parallel**.
```ocaml
(* see [man 3 pread] *)
let map fd ~pos len = Effect.perform (Scheduler.Pread (fd, pos, len))
let () = Scheduler.run begin fun () ->