package devkit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Development kit - general purpose library
Install
dune-project
Dependency
Authors
Maintainers
Sources
1.20261006.tar.gz
md5=a39dbbce04bd5562a9b4443daf39c582
sha512=b10104b61384b2151521b785e7f3c3250134c75eae09b42cad69bc4a22a9a5e429beb891ee87cedf376c23d9c40f09d3f71c3fd48aa35df490c0f69dc17f3242
doc/devkit.core/Devkit_core/Async/index.html
Module Devkit_core.AsyncSource
Asynchronous IO helpers
Source
val simple_event :
Ev.event_base ->
?ev:??? ->
?timeout:??? ->
Unix.file_descr ->
Ev.event_flags list ->
(Ev.event -> Unix.file_descr -> Ev.event_flags -> unit) ->
Ev.eventCreate a new event or use the provided ev and make it persistent with the infinite timeout (or use the provided timeout). Schedule this event with provided callback f. Don't forget del to unschedule.
Source
val setup_simple_event :
Ev.event_base ->
?ev:??? ->
?timeout:??? ->
Unix.file_descr ->
Ev.event_flags list ->
(Ev.event -> Unix.file_descr -> Ev.event_flags -> unit) ->
unitSource
val read_available :
limit:int ->
Unix.file_descr ->
[> `Chunk of string * bool | `Limit of string ]Read out all immediately available input (no blocking)
Source
val read_buf :
Ev.event_base ->
?ev:??? ->
?timeout:??? ->
bytes ->
Unix.file_descr ->
([> `Eof | `EofImm | `Exn of exn | `ExnImm of exn | `Timeout ] ->
int ->
unit) ->
(bytes -> unit) ->
unitread_buf buf fd err k - asynchronously fill buf with data from fd and call k buf when done (buffer is full). fd should be nonblocking. Call err on error (EOF).
Source
val read_n :
Ev.event_base ->
?ev:??? ->
?timeout:??? ->
int ->
Unix.file_descr ->
([> `Eof | `EofImm | `Exn of exn | `ExnImm of exn | `Timeout ] ->
int ->
unit) ->
(string -> unit) ->
unitSource
val periodic_timer_0 :
Ev.event_base ->
bool ref ->
float ->
float ->
?name:??? ->
(unit -> unit) ->
Ev.eventCall f with delay-second pauses between invocations. Set stop to true to stop the timer. NB do not Ev.del the event inside the f callback.
Source
val periodic_timer_now :
Ev.event_base ->
?stop:??? ->
float ->
?name:??? ->
(unit -> unit) ->
Ev.eventSource
val periodic_timer_wait :
Ev.event_base ->
?stop:??? ->
float ->
?name:??? ->
(unit -> unit) ->
Ev.eventSource
val setup_periodic_timer_now :
Ev.event_base ->
?stop:??? ->
float ->
?name:??? ->
(unit -> unit) ->
unitSource
val setup_periodic_timer_wait :
Ev.event_base ->
?stop:??? ->
float ->
?name:??? ->
(unit -> unit) ->
unit sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>