Skip to main content

poll_until 0.1.0 copy "poll_until: ^0.1.0" to clipboard
poll_until: ^0.1.0 copied to clipboard

Poll an async function until a condition is met, with fixed or exponential backoff, deadline, and cancellation.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add poll_until

With Flutter:

 $ flutter pub add poll_until

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

dependencies:
  poll_until: ^0.1.0

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:poll_until/poll_until.dart';
0
likes
160
points
65
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Poll an async function until a condition is met, with fixed or exponential backoff, deadline, and cancellation.

Repository (GitHub)
View/report issues

Topics

#async #polling #retry #dart #flutter

License

MIT (license)

More

Packages that depend on poll_until