Releases: ssgreg/repeat
Releases · ssgreg/repeat
v1.5.1: Merge pull request #6 from pamburus/feature/jitter
New Repeator factory methods: With and NewRepeaterExt.
-
'With' returns object that calls C (constructor) at first, then ops, then D (destructor). D will be called in any case if C returns nil. D is able to hide original error an return nil or return error even if the original error is nil.
-
'NewRepeaterExt' returns object that wraps all ops with with the given opw and wraps composed operation with the given copw.
v1.4.1: Merge pull request #4 from ssgreg/feature/fix-exp-backoff
fix: overflow in exponential backoff
v1.4
Once and FnRepeat
- add: Once and FnRepeat to Repeater and global functions
New `Cpp` concept.
- add: Nope to operations
- add: new function to create Repeater with constructor and destructor - Cpp
More operations & tests.
- add: IsTemporary and IsStop for errors
- add: FnOnError for operations
- add: missing tests for operations
Public release
- add new interface Repeater
- add new concept - OpWrapper
- add new function to create Repeater with wrapping operations
- add new WithContext - a repeater that checks for context errors before operation call