PHP code example of wyrihaximus / react-parallel-runtime
1. Go to this page and download the library: Download wyrihaximus/react-parallel-runtime library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wyrihaximus / react-parallel-runtime example snippets
$autoloader = \dirname(__DIR__) . '/vendor/autoload.php';
tureToPromiseConverter($loop), $autoloader);
$runtime->run(function () {
sleep(3);
return 3;
})->then(function (int $int): void {
echo $int, PHP_EOL;
});
$loop->run();