Skip to content

Commit 994de9d

Browse files
committed
Update example to new eventloop API
1 parent e013bfc commit 994de9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ built on top of [ReactPHP](https://reactphp.org/).
88
Once [installed](#install), you can use the following code turn any blocking function (such as PHP's built-in [`file_get_contents()`](https://www.php.net/manual/en/function.file-get-contents.php) function) into a non-blocking one:
99

1010
```php
11-
$file_get_contents = (new Clue\React\Pq\Executor($loop))->fun('file_get_contents');
11+
$file_get_contents = (new Clue\React\Pq\Executor())->fun('file_get_contents');
1212

1313
$file_get_contents(__FILE__)->then(function (string $contents) {
1414
echo $contents;

0 commit comments

Comments
 (0)