Main loop and event queue
This module controls the ``main-loop'' of Lwt.
run t calls the Lwt scheduler repeatedly until
then returns the value returned by the thread. It
t fails with
an exception, this exception is raised.
Note that you should avoid using
run inside threads
runare serialized: an invocation of
runwill not terminate before all subsequent invocations are terminated.
Note also that it is not safe to call
run in a function
Pervasives.at_exit, use the at_exit
function of this module instead.