TokenBucket

trait TokenBucket[F[_]]

A token bucket for use with the Throttle middleware. Consumers can take tokens which will be refilled over time. Implementations are required to provide their own refill mechanism.

Possible implementations include a remote TokenBucket service to coordinate between different application instances.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

Concrete methods

def mapK[G[_]](fk: FunctionK[F, G]): TokenBucket[G]