Class Lwt_engine.abstract
Abstract class for engines.
method virtual id : engine_ididentifies the engine
method destroy : unitDestroy the engine, remove all its events and free its associated resources.
method transfer : abstract -> unittransfer engine moves all events from the current engine to engine. Note that timers are reset in the destination engine, i.e. if a timer with a delay of 2 seconds was registered 1 second ago it will occur in 2 seconds in the destination engine.
Event loop methods
method virtual iter : bool -> unitmethod fork : unitmethod fake_io : Unix.file_descr -> unitmethod readable_count : intmethod writable_count : intmethod timer_count : intmethod forwards_signal : int -> boolBackend methods
Notes:
- the callback passed to register methods is of type
unit -> unitand notevent -> unit - register methods return a lazy value which unregisters the event when forced
method private virtual cleanup : unitCleanup resources associated with the engine.
method private virtual register_readable : Unix.file_descr ->
(unit -> unit) ->
unit Stdlib.Lazy.tmethod private virtual register_writable : Unix.file_descr ->
(unit -> unit) ->
unit Stdlib.Lazy.tmethod private virtual register_timer : float ->
bool ->
(unit -> unit) ->
unit Stdlib.Lazy.t