Skip to content

Commit

Permalink
Hack: pin Eio and Lwt until released
Browse files Browse the repository at this point in the history
  • Loading branch information
talex5 committed Jun 26, 2023
1 parent d376363 commit c09772e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lwt_eio.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let fork_with_cancel ~sw fn =
We intercept that attempt and prevent the handler from changing.
2. Lwt installs its handler first (e.g. because someone ran a Lwt event loop for a bit before using Eio).
In that case, Eio has already replaced Lwt's handler.
In that case, Eio will already have replaced Lwt's handler by the time we get called.
Either way, Eio ends up owning the installed handler. We also want things to continue working if the Eio
event loop finishes and then the application runs a plain Lwt loop. That's why we use [register_immediate],
Expand Down
7 changes: 7 additions & 0 deletions lwt_eio.opam
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ build: [
]
]
dev-repo: "git+https://github.com/ocaml-multicore/lwt_eio.git"
pin-depends: [
["eio.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["eio_linux.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["eio_posix.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["eio_main.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["lwt.dev" "git+https://github.com/talex5/lwt.git#d4367052c1be8372d33661c01749086e56af623c"]
]
7 changes: 7 additions & 0 deletions lwt_eio.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pin-depends: [
["eio.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["eio_linux.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["eio_posix.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["eio_main.dev" "git+https://github.com/ocaml-multicore/eio.git#3e49036b633979995e51ec83feb2732e9c6ce1aa"]
["lwt.dev" "git+https://github.com/talex5/lwt.git#d4367052c1be8372d33661c01749086e56af623c"]
]

0 comments on commit c09772e

Please sign in to comment.