[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] How to implement protocols?
On 11/13/2015 20:20, Thomas Gazagnaire wrote: > Good read, thanks. I am not sure how you can deal with blocking > events (timer, read/write access to the disk). In that case, you are > often "forced" to use "''a Lwt.t" function. For instance, in [1] when > reading the Git pack file I need to pass a function to read > uncompressed objects on disk (the read function) to support shallow > objects (ie. objects whose ID is in the pack file, but whose contents > is stored uncompressed on disk. And as usual, the Lwt.t propagates to > the return type of that function... I'm happy if you have a solution > to this! > > [1]: https://github.com/mirage/ocaml-git/blob/master/lib/pack.mli#L91-L97 I've no good solution for that, hopefully effects will rescue us!? hannes Attachment:
signature.asc _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |