Backoff typedef

Backoff = Duration Function(int attempt)

How long to wait before reconnect attempt attempt (1 is the first).

Implementation

typedef Backoff = Duration Function(int attempt);