-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async support in Mirage/Xen #282
Comments
Ah, I suspect I need this Async support to get my mqtt_client running in Xen and I was about to open an issue here about this. The other conclusion I was reaching was that there needed to be a V[1|2]_ASYNC.mli in mirage/types... not sure if that should be a separate issue or part of this one. I was thinking that where V2_LWT.mli has module type declarations like:
... a V2_ASYNC.mli would need to have:
(though I'm not sure about that last one for Ippaddr) |
That's exactly right @philtomson. The issue is what lies behind the module types -- we need to build equivalent implementations of (e.g.) the network stack to support Async. There's one light on the horizon: https://github.com/janestreet/lwt-async which builds a |
@avsm: is it as easy as:
? |
Indeed. I've never tried it. Async is more conservative than Lwt in general, so it might just work. (note that it's Lwt embedded in Async, not the other way around, which would be harder) |
@avsm I think that lwt-async keeps up with Async but it doesn't keep with the latest Lwt. Luckily Lwt is fairly static. |
I suspect eio will happen before we manage to get async supported. |
Here's a thread from the mailing list that lays out some of the steps to support Async in Mirage/Xen mode.
The text was updated successfully, but these errors were encountered: