Context manager generator for retry block pattern and decorator.

It would be good to have an example or two of how to use this manager in the docstring.