Ah right, I didn’t know there was a Lwt_unix.fork function available. In which case the child cancelling the promise on which the main loop is blocking seems like it should work (assuming Lwt_unix.fork is actually reliable).
cvine
8
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Best practices for Lwt_main.run | 3 | 1291 | October 3, 2019 | |
| Fork in a Lwt framework | 3 | 310 | August 30, 2025 | |
| Ignoring Lwt values | 13 | 1696 | September 1, 2019 | |
| Lwt: Why does this piece of code work !? | 10 | 1439 | November 23, 2022 | |
| Best practice on mixing Async and Lwt? | 15 | 2623 | November 23, 2019 |