throttling 0.6.0 copy "throttling: ^0.6.0" to clipboard
throttling: ^0.6.0 copied to clipboard

outdated

contain "throttling" and "debouncing" async helper classes with listeners for flutter

THROTTLING DART LIBRARY #

contain "throttling" and "debouncing" classes

See demonstration of use on the

Throttling example #

final Throttling thr = new Throttling(duration: Duration(seconds: 2));
thr.throttle(() {print(' *ping #1');});
await Future.delayed(Duration(seconds: 1));
thr.throttle(() {print(' *ping #2');});
await Future.delayed(Duration(seconds: 1));
thr.throttle(() {print(' *ping #3');});

Debouncing example #

final Debouncing deb = new Debouncing(duration: Duration(seconds: 2));
deb.debounce(() {print(' *ping #1');});
await Future.delayed(Duration(seconds: 1));
deb.debounce(() {print(' *ping #2');});
await Future.delayed(Duration(seconds: 1));
deb.debounce(() {print(' *ping #3');});
40
likes
0
pub points
93%
popularity

Publisher

verified publisherplugfox.dev

contain "throttling" and "debouncing" async helper classes with listeners for flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on throttling