Choose a retry schedule and how many attempts to allow.
Unlimited keeps offering retries.
MaxAttempts counts the initial operation as an attempt, so MaxAttempts 3
allows two retries. A limit of one or less allows no retries.
Remaining attempts after the supplied count, or Nothing for an unlimited policy.
Exhausted limits return Just 0.
Whether another attempt is allowed. The count includes the initial operation and any retries already made.
Delay in milliseconds before another attempt, or Nothing when exhausted.
Count attempts already made, starting at one for the initial operation.
A retry schedule and an attempt limit.