package uwt

  1. Overview
  2. Docs
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.3.tar.gz
sha256=9e653a9fc7a13c5435a58780ddf02ff15c8ff92f63f6ff4406b1d312e3060807
md5=549517d3e9bcf5533097e4c83f891e2c

doc/uwt.ext/Uwt_throttle/module-type-S/index.html

Module type Uwt_throttle.S

type key
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