Hello there. I have almost no experience with Lwt, so excuse me if my comment is not relevant, but looking at it from a higher level point of view, maybe you could solve this by considering it as an instance of the Producer-Consumer problem.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Lwt_unix.read from a large file and scheduling | 5 | 2207 | July 7, 2017 | |
| Async or Lwt. Multiple source, single reader | 11 | 998 | May 26, 2023 | |
| Lwt alternative to async.pipe | 3 | 1003 | February 13, 2021 | |
| Lwt, message queue, multiple writer, single reader | 10 | 2291 | September 21, 2018 | |
| `Lwt.asyc` thread not executing with blocking read | 7 | 728 | August 17, 2022 |