package core_kernel
Industrial strength alternative to OCaml's standard library
Install
Dune Dependency
Authors
Maintainers
Sources
core_kernel-v0.16.0.tar.gz
sha256=e37370bad978cfb71fdaf2b1a25ab1506b98ef0b91e0dbd189ffd9d853245ce2
doc/core_kernel.limiter/Limiter/Token_bucket/index.html
Module Limiter.Token_bucket
Source
Implements a basic token-bucket-based rate limiter. Users of the throttle must successfully call try_take
before doing work.
Source
val create_exn :
now:Core.Time_ns.t ->
burst_size:int ->
sustained_rate_per_sec:float ->
?initial_bucket_level:int ->
unit ->
t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>