Skip to content

Commit 5ee038d

Browse files
committed
wip
1 parent 19c46b0 commit 5ee038d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

helpers.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,10 +2780,12 @@ If the execution exceeds the fixed duration, `Timebox` has no effect. It is up t
27802780

27812781
The call method accepts a closure and a time limit in microseconds, and then executes the closure and waits until the time limit is reached:
27822782

2783-
use Illuminate\Support\Timebox;
2783+
```php
2784+
use Illuminate\Support\Timebox;
27842785

2785-
(new Timebox)->call(function ($timebox) {
2786-
// ...
2787-
}, microseconds: 10000);
2786+
(new Timebox)->call(function ($timebox) {
2787+
// ...
2788+
}, microseconds: 10000);
2789+
```
27882790

27892791
If an exception is thrown within the closure, this class will respect the defined delay and re-throw the exception after the delay.

0 commit comments

Comments
 (0)