Attempt to replay an action up to maxAttempts times. On exhaustion the action goes to "poison" — the optional handler is invoked and the function resolves. Exposed for unit testing.
maxAttempts
Optional
Attempt to replay an action up to
maxAttemptstimes. On exhaustion the action goes to "poison" — the optional handler is invoked and the function resolves. Exposed for unit testing.