# retry 1.0.0

Execute a function repeatedly until no exception is thrown




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'retry:1.0.0'
```
Published: 2016-03-31T16:47:45.053Z
Expected archive SHA-256: 4d918240ea6fba89e4aaf814a7a6b40f9f72998ed04780db32d53a8f64989abc

Available in cache; verification: upstream_checksum
## Direct dependencies

## Package README (untrusted upstream documentation)
# dart-retry
Execute a function repeatedly until no exception is thrown

## Usage

    import "package:retry/retry.dart";
    import "dart:async";

    Future connectFunction(){ ... }

    Future main() async {
      // Tries to connect to a database 6 times, waiting 10 seconds each time
      final db = await retry(connectFunction);
    }

Useful for waiting for a server to come up.

## Changelog







 
