- Refreshed dependencies
- Relaxed upper version constraints on dependencies
- Internally, now using
gleam_timeinstead ofbirl, as it seems to be maintained more actively
- Improve documentation.
- Added support for expiry mode.
This is a breaking change. For existing code, any calls to execute will need to be adjusted.
max_attempts: 3 -> mode: persevero.MaxAttempts(3)
To use expiry mode, use persevero.Expiry when calling execute.
mode: persevero.Expiry(10_000) - will expire after 10 seconds.
A new error type has been added: TimeExhausted. This will also be a breaking
change for any code that had previously matched exhaustively on error types
returned from execute.
- API stabilized.
- Initial release.