throttled 1.0.1 copy "throttled: ^1.0.1" to clipboard
throttled: ^1.0.1 copied to clipboard

Throttle function calls on a cooldown while ensuring the last call eventually runs with leaky calls.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add throttled

With Flutter:

 $ flutter pub add throttled

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

dependencies:
  throttled: ^1.0.1

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:throttled/throttled.dart';
0
likes
140
points
305
downloads

Publisher

verified publisherarcane.art

Weekly Downloads

Throttle function calls on a cooldown while ensuring the last call eventually runs with leaky calls.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

More

Packages that depend on throttled