File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 5
5
/**
6
6
* Wraps an operation, represented as a callable, in retry logic.
7
7
*
8
- * The class implements the retry logic for you by re-executing your callable
9
- * in case of temporary errors where retrying the failed operation, after a
10
- * short delay usually resolves the problem. Just wrap your operation in this
11
- * class and invoke it. You can also pass arguments when invoking the wrapper
12
- * which will be passed through to the underlying callable.
13
- *
14
8
* @author Tobias Schultze <http://tobion.de>
15
9
* @author Christian Riesen <http://christianriesen.com>
16
10
*/
@@ -61,16 +55,13 @@ public function getRetries()
61
55
}
62
56
63
57
/**
64
- * Executes the wrapped callable and retries it in case of a configured exception happening.
65
- *
66
- * The callable is only re-executed for exceptions that are a subclass of one of the configured exceptions. Other exceptions will be ignored
67
- * and just bubble upwards immediately.
58
+ * Executes the wrapped callable and retries it until the exception handler also throws an exception.
68
59
*
69
60
* All arguments given will be passed through to the wrapped callable.
70
61
*
71
62
* @return mixed The return value of the wrapped callable
72
63
*
73
- * @throws \Exception When retries are exceeded or retry is not configured for it
64
+ * @throws \Exception When the exception handler also throws an exception.
74
65
*/
75
66
public function __invoke ()
76
67
{
You can’t perform that action at this time.
0 commit comments