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_throttle/module-type-S/index.html
Module type Lwt_throttle.S
Source
Lwt_throttle.wait limiter channel
returns a new promise associated with the given rate limiter and channel.
If the maximum number of pending promises for limiter
has not been reached, the promise starts pending. It will be resolved with true
at some future time, such that the rate limit of limiter
is not exceeded, with respect to other promises in the same channel
.
If the maximum number of pending promises has been reached, the returned promise is already resolved with false
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>