package uwt

  1. Overview
  2. Docs
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.0.2.tar.gz
sha256=1c4a49f4cffc017fff8a47563653f5a9ed4007bbd6705fd9737a211ff3d864e2
md5=25fbbf9b39c072f9667e6fdfba108556

doc/uwt.ext/Uwt_throttle/Make/index.html

Module Uwt_throttle.Make

Parameters

Signature

type key = H.t
type t
val create : rate:int -> max:int -> n:int -> t
  • parameter rate

    maximum number of connections per second

  • parameter max

    maximum waiting time (in seconds)

  • parameter n

    initial size of the hash table

val wait : t -> key -> bool Lwt.t
  • returns

    false if maximum reached, true else