You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
16
vendor/swoole/examples/coroutine/exception/empty.php
vendored
Executable file
16
vendor/swoole/examples/coroutine/exception/empty.php
vendored
Executable file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
go(function () {
|
||||
try {
|
||||
echo "before\n";
|
||||
co::sleep(0.5);
|
||||
echo "after\n";
|
||||
throw new Exception('coro Exception.');
|
||||
} catch (Exception $e) {
|
||||
echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||
} finally {
|
||||
echo "First finally.\n";
|
||||
}
|
||||
});
|
||||
echo "exec file end\n";
|
||||
|
||||
|
Reference in New Issue
Block a user