package uwt

  1. Overview
  2. Docs

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