Made the code more robust.

Extended functionality with helper functions.
This commit is contained in:
Joop Schilder committed 2019-01-16 16:22:02 +01:00
1 parent 1466c2eaef
commit c0cfaadcc3
8 files changed
+372 -93

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/php
<?php
use function Joop\Asynchronous\async;
require_once __DIR__ . '/../../vendor/autoload.php';
$process = function ($number) {
sleep($number);
return $number;
};
async($process, 2);
// Do stuff...