You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your callback throws an exception, Flaky will check to see if it's still in the grace period. If it is, the exception
62
+
If your callback throws an exception, Flaky will check to see if it's still within the grace period. If it is, the exception
63
63
will be captured.
64
64
65
65
If your callback succeeds, the deadline will be reset.
@@ -78,7 +78,7 @@ Flaky::make('my-flaky-code')
78
78
})
79
79
```
80
80
81
-
Now your function can fail 10 times in a row without alerting you, but on the 11th failure the exception will be thrown.
81
+
Now your function can fail 10 times in a row without alerting you, but on the 11th failure the exception will be thrown. If the callback succeeds, the consecutive failure counter will be reset.
82
82
83
83
### Total Failures
84
84
@@ -116,8 +116,8 @@ Flaky::make('my-flaky-code')
116
116
117
117
## Reporting instead of throwing
118
118
119
-
By default, Flaky will actually throw the exception if it occurs outside of the bounds you have define. You can choose
120
-
to report that exception instead of throw it, using Laravel's `report` method.
119
+
By default, Flaky will actually `throw` the exception if it occurs outside of the bounds you have define. You can choose
120
+
to `report` that exception instead of throw it, using Laravel's `report` method.
121
121
122
122
```php
123
123
Flaky::make('my-flaky-code')
@@ -189,7 +189,7 @@ Flaky::make('my-flaky-code')
189
189
190
190
## Accessing the result
191
191
192
-
Flaky will return a `Result` class to your for your use.
0 commit comments