token_bucket 0.9.7-pre
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';