lwt icon indicating copy to clipboard operation
lwt copied to clipboard

A prototype inclusion of effect handling into the `Lwt_main.run` function

Open raphael-proust opened this issue 2 years ago • 0 comments

Using two schedulers at the same time doesn't really work. Even when they're not really schedulers! And so it's unsurprising that effects and Lwt don't mix well. See [https://gitlab.com/raphael-proust/lwt-effect-try-out/-/blob/develop/src/M01pause.ml](this experiment) for examples of where it breaks down.

This PR is a prototype to allow users to pass an effect handler to the Lwt_main.run function which in turn installs it around the appropriate calls.

raphael-proust avatar Sep 09 '22 08:09 raphael-proust