Module Lwt_engine

module Lwt_engine : sig..end

Lwt unix main loop engine


type event

Type of events. An event represent a callback registered to be called when some event occurs.

val stop_event : event -> unit

stop_event event stops the given event.

val fake_event : event

Event which does nothing when stopped.

Event loop functions

val iter : bool -> unit

iter block performs one iteration of the main loop. If block is true the function must blocks until one event beco