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
Copy file name to clipboardExpand all lines: README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,11 @@ built on top of [ReactPHP](https://reactphp.org/).
8
8
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:
9
9
10
10
```php
11
-
$file_get_contents = (new Clue\React\Pq\Executor($loop))->fun('file_get_contents');
11
+
<?php
12
+
13
+
require __DIR__ . '/vendor/autoload.php';
14
+
15
+
$file_get_contents = (new Clue\React\Pq\Executor())->fun('file_get_contents');
0 commit comments