package lwt
Promises and event-driven I/O
Install
Dune Dependency
Authors
Maintainers
Sources
5.4.0.zip
md5=fc4721bdb1a01225b96e3a2debde95fa
sha512=e427f08223b77f9af696c9e6f90ff68e27e02e446910ef90d3da542e7b00bf23dd191ac77c1871288faa2289f8d28fc2f44efc3d3fe9165fe1c7a6be88ee49ff
doc/lwt.unix/Lwt_engine/class-abstract/index.html
Class Lwt_engine.abstract
Source
Abstract class for engines.
method transfer : abstract -> unit
transfer 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 on_readable : Unix.file_descr -> (event -> unit) -> event
method on_writable : Unix.file_descr -> (event -> unit) -> event
method fake_io : Unix.file_descr -> unit
Backend methods
Notes:
- the callback passed to register methods is of type
unit -> unit
and notevent -> unit
- register methods return a lazy value which unregisters the event when forced
method private virtual register_readable : Unix.file_descr ->
(unit -> unit) ->
unit Lazy.t
method private virtual register_writable : Unix.file_descr ->
(unit -> unit) ->
unit Lazy.t
method private virtual register_timer : float ->
bool ->
(unit -> unit) ->
unit Lazy.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page