mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-04 07:15:36 +08:00
add @OnCloseEvent, @OnOpenEvent, @OnMessageEvent, @OnRequestEvent update EventDispatcher.php and change it to status-based schema fix @CQBefore bugs
7 lines
143 B
PHP
7 lines
143 B
PHP
<?php #plain
|
|
|
|
//这里写你的全局函数
|
|
function pgo(callable $func, $name = "default") {
|
|
\ZM\Utils\CoroutinePool::go($func, $name);
|
|
}
|