# Foretoken

An ETS-based implementation of the [token bucket algorithm](

- [API Documentation](
- [Hex package information](

[![Build Status](](
[![Coverage Status](](

## Feature & Design

- ETS as bucket storage
- Direct access to ETS table to exploit concurrency
- On-demand creation of buckets
- Automatic cleanup of unused buckets
- Extremely simple API (only 1 public interface function): `Foretoken.take/4`.

## Compatibility notes

This package requires Erlang/OTP 20 (or later).