package lwt
Promises and event-driven I/O
Install
Dune Dependency
Authors
Maintainers
Sources
5.6.1.tar.gz
md5=279024789a0ec84a9d97d98bad847f97
sha512=698875bd3bfcd5baa47eb48e412f442d289f9972421321541860ebe110b9af1949c3fbc253768495726ec547fe4ba25483cd97ff39bc668496fba95b2ed9edd8
doc/lwt.unix/Lwt_throttle/Make/index.html
Module Lwt_throttle.Make
Source
Parameters
module H : Hashtbl.HashedType
Signature
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)"
>
On This Page