attempt v0.6.0 Attempt.Bucket protocol

Link to this section Summary

Functions

Claim a token from a token bucket

Create and start a new bucket

Return the state of the token bucket

Stop the token bucket process

Link to this section Types

Link to this type t()
t() :: struct()

Link to this section Functions

Link to this function claim_token(bucket, options)

Claim a token from a token bucket

Link to this function new(bucket, options)

Create and start a new bucket

Return the state of the token bucket

Stop the token bucket process