mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
update to 2.5.0-b1 (build 408)
This commit is contained in:
@@ -38,6 +38,10 @@ class CoroutinePool
|
||||
self::$sizes[$name] = $size;
|
||||
}
|
||||
|
||||
public static function getRunningCoroutineCount($name = "default") {
|
||||
return count(self::$cids[$name]);
|
||||
}
|
||||
|
||||
private static function checkCids($name) {
|
||||
if (in_array(Coroutine::getCid(), self::$cids[$name])) {
|
||||
$a = array_search(Coroutine::getCid(), self::$cids[$name]);
|
||||
|
||||
Reference in New Issue
Block a user