token_bucket 0.9.7-pre copy "token_bucket: ^0.9.7-pre" to clipboard
token_bucket: ^0.9.7-pre copied to clipboard

Token Bucket is a Dart library for implementing rate limiting using the token bucket algorithm. It provides a simple and efficient way to control the rate of actions in your application.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add token_bucket

With Flutter:

 $ flutter pub add token_bucket

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  token_bucket: ^0.9.7-pre

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:token_bucket/token_bucket.dart';
2
likes
150
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Token Bucket is a Dart library for implementing rate limiting using the token bucket algorithm. It provides a simple and efficient way to control the rate of actions in your application.

Repository (GitHub)
View/report issues

Topics

#rate-limit #token-bucket

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on token_bucket