poll_until 0.1.0
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_untilWith Flutter:
$ flutter pub add poll_untilThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
poll_until: ^0.1.0Alternatively, 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';