Basic retrying class. Retries a specified block of code a specified number of times before giving up. The 'code block' is passed as a lazy bool parameter to the loop() / opCall() method.
Retrying class which waits for a specified amount of time before each retry.
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).
Copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
I/O wait and retry callback manager
Provides a simple means for trying a block of code and retrying it if specified conditions occur. The default condition for retrying is if any exceptions are thrown in the code block. Custom success conditions can be easily provided as a delegate to the class' constructor.
Usage example:
Example using a custom delegate to determine success:
An extended class, WaitRetry, implements a retryer which pauses for a specified length of time before each retry.