From 1a0869098ba7152a9b5f0bd0c137ea1e546b90b1 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 12 Dec 2021 21:06:34 +0100 Subject: [PATCH] Add async example --- examples/async.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/async.php diff --git a/examples/async.php b/examples/async.php new file mode 100644 index 0000000..97f1c39 --- /dev/null +++ b/examples/async.php @@ -0,0 +1,36 @@ +await(); +$future2->await(); +$future3->await(); + +delay(1); + +print 'd'; + +delay(1); + +print 'e';