djs55/ocaml-xenstore — comment on commit 54c7e86f9cb119dc7b4bcb3baa27abd5ccf4cafa
File:  line 0
By djs55:

@avsm Does this look more sensible? Hopefully I've "firewalled" off the sensitive state machine part from the client using the Lwt.task as a buffer. If the user cancels the Lwt.task then I trigger an orderly shutdown of the watching code (via a condition variable). Hopefully the user can't cancel my orderly shutdown since this would leave the connection in a dodgy state.