Context manager generator for retry block pattern and decorator.

It might be helpful to have examples of why you might want to use each argument.