package generic
import "github.com/IBM/fp-go/retry/generic"
Index ¶
Functions ¶
func Retrying ¶
func Retrying[HKTA, HKTSTATUS, A any]( monadChain func(func(A) HKTA) func(HKTA) HKTA, monadChainStatus func(func(R.RetryStatus) HKTA) func(HKTSTATUS) HKTA, monadOf func(A) HKTA, monadOfStatus func(R.RetryStatus) HKTSTATUS, monadDelay func(time.Duration) func(HKTSTATUS) HKTSTATUS, policy R.RetryPolicy, action func(R.RetryStatus) HKTA, check func(A) bool, ) HKTA
Retry combinator for actions that don't raise exceptions, but signal in their type the outcome has failed. Examples are the `Option`, `Either` and `EitherT` monads.
policy - refers to the retry policy action - converts a status into an operation to be executed check - checks if the result of the action needs to be retried
Source Files ¶
- Version
- v1.0.151 (latest)
- Published
- Nov 23, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 4 months ago –
Tools for package owners.