ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
559 stars 72 forks source link

Eio.Pool.use: move never_block argument #747

Open talex5 opened 3 months ago

talex5 commented 3 months ago

Optional arguments should go first so that it's obvious to the compiler when they're not being used. Example of a program where this makes a difference:

let run use = use ignore

let () =
  let p = Eio.Pool.create 1 ignore in
  run (Eio.Pool.use p)