I want to use one library that works with Lwt (multipart_form_lwt) and another library that works with Async (mssql) in a project that is currently written using Lwt. I can envisage a variety of solutions:
- Use the lower-level API of multipart_form to get it working with Async and port the whole program from Lwt to Async just so I can work with mssql in the hope that I do not then need an Lwt-only library in the future.
- Split off mssql exposed as a web service on the same machine.
- Find some kind of in-process interop between Lwt and Async. I’m not sure if this is as simple as just writing everything in CPS or if this is impossible.
I’m guessing I am not the first person to have faced this challenge so I’m wondering if there is a preferred solution?