retry online with Winfy

We have hosted the application retry in order to run this application in our online workstations with Wine or directly.


Quick description about retry:

Simple library for retry mechanism. Context allow to set context of retry default are Background context. Return the direct last error that came from the retried function default is false (return wrapped errors with everything) WithTimer provides a way to swap out timer module implementations. This primarily is useful for mocking/testing, where you may not want to explicitly wait for a set duration for retries. DelayTypeFunc is called to return the next delay to wait after the retriable function fails on err after n attempts. FixedDelay is a DelayType that keeps delay the same through all iterations. DelayTypeFunc accepts a new parameter err - this breaking change affects only your custom Delay Functions. RetryIf controls whether a retry should be attempted after an error (assuming there are any retry attempts remaining).

Features:
  • Sightly complicated interface
  • Infinity retry is possible by set Attempts(0) by PR #49
  • BackOffDelay is a DelayType which increases delay between consecutive retries
  • FixedDelay is a DelayType which keeps delay the same through all iterations
  • WrappedErrors returns the list of errors that this Error is wrapping
  • Setting to 0 will retry until the retried function succeeds. default is 10


Programming Language: Go.
Categories:
Libraries

©2024. Winfy. All Rights Reserved.

By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.