caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] lwt exceptions and infinite loops
@ 2013-11-19  4:48 Ivan Gotovchits
  2013-11-19  9:21 ` Jeremie Dimino
  2013-11-19 11:06 ` Jacques-Pascal Deplaix
  0 siblings, 2 replies; 6+ messages in thread
From: Ivan Gotovchits @ 2013-11-19  4:48 UTC (permalink / raw)
  To: caml-list


consider the following simple example:

  open Lwt
  let rec loop () = Lwt_unix.sleep 1. >> loop ()
  let bad () = Lwt_unix.sleep 1. >> fail Not_found
  let () = Lwt_main.run (join [loop (); bad ()])


This program never terminates with an exception as I expect.

Can someone clarify to me what really happens underneath the hood?

Thanks in advance!


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-19 12:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19  4:48 [Caml-list] lwt exceptions and infinite loops Ivan Gotovchits
2013-11-19  9:21 ` Jeremie Dimino
2013-11-19 12:32   ` Ivan Gotovchits
2013-11-19 11:06 ` Jacques-Pascal Deplaix
2013-11-19 11:11   ` Raphaël Proust
2013-11-19 11:35     ` Jacques-Pascal Deplaix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).