coroutineGetGroupCount
TCP/WebSocket可以使用。
协程的方式获取该群的人数。
函数原型:
/**
* 获取群的人数(协程)
* @param $group_id
* @return RedisCoroutine
* @throws SwooleException
*/
public function coroutineGetGroupCount($group_id)
协程例子:
public function getGroupCount()
{
$value = yield get_instance()->coroutineGetGroupCount(10000);
var_dump($value);
$this->destroy();
}