We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3ff61 commit 78da384Copy full SHA for 78da384
demos/demo.php
@@ -6,19 +6,14 @@
6
use Terremoth\Async\PhpFile;
7
8
$process = new Process();
9
+
10
echo date('c') . ' :: Sending process. You should not wait any longer to see next message: ' . PHP_EOL;
11
12
try {
13
$process->send(function () {
-
- $var1 = 4;
14
- $var2 = ((2 + 2) / $var1) + ((2 * 2) - 1);
15
16
sleep(5);
17
18
- if ($var1 == $var2) {
19
- echo 2;
20
- file_put_contents('demo.txt', 'Hello, World! At: ' . date('c'));
21
- }
+ echo 123;
+ file_put_contents('demo.txt', 'Hello, World! At: ' . date('c'));
22
});
23
} catch (Exception $e) {
24
echo $e->getMessage();
0 commit comments