module Lwt_engine:sig..end
type event
val stop_event : event -> unitstop_event event stops the given event.val fake_event : eventval iter : bool -> unititer block performs one iteration of the main loop. If block
is true the function must blocks until one event become
available, otherwise it should just check for available events
and return immediatly.val on_readable : Unix.file_descr -> (event -> unit) -> eventon_readable fd f calls f each time fd becomes readable.val on_writable : Unix.file_descr -> (event -> unit) -> eventon_readable fd f calls f each time fd becomes writable.val on_timer : float -> bool -> (event -> unit) -> eventon_timer delay repeat f calls f one time after delay
seconds. If repeat is true then f is called each delay
seconds, otherwise it is called only one time.val readable_count : unit -> intval writable_count : unit -> intval timer_count : unit -> intval fake_io : Unix.file_descr -> unitclass virtual abstract :object..end
class type t =object..end
type ev_loop
class libev :object..end
class select :t
Unix.select.
class virtual select_based :object..end
class virtual poll_based :object..end
val get : unit -> tget () returns the engine currently in use.val set : ?transfer:bool -> ?destroy:bool -> #t -> unitset ?transfer ?destroy engine replaces the current engine by
the given one.
If transfer is true (the default) all events from the
current engine are transferred to the new one.
If destroy is true (the default) then the current engine is
destroyed before being replaced.