Liking cljdoc? Tell your friends :D

d-core.core.rate-limit.protocol


RateLimitProtocolcljprotocol

consume!clj

(consume! this key opts)

Attempt to consume from the rate limit. Returns {:allowed? boolean :remaining long :reset-at epoch-ms|nil :retry-after-ms long|nil}.

Attempt to consume from the rate limit.
Returns {:allowed? boolean
         :remaining long
         :reset-at epoch-ms|nil
         :retry-after-ms long|nil}.

consume-blocking!clj

(consume-blocking! this key opts)

Blocking variant of consume! that waits until allowed when possible.

Blocking variant of consume! that waits until allowed when possible.

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close