This commit is contained in:
2021-03-31 01:36:16 +08:00
parent 801c10e57d
commit 89ea285817
2 changed files with 16 additions and 0 deletions
+13
View File
@@ -68,6 +68,19 @@ class Channel extends Component
}
/**
*
* 清空缓存
*/
public function cleanAll()
{
/** @var CChannel $channel */
foreach ($this->_channels as $channel) {
$channel->close();
}
$this->_channels = [];
}
/**
* @param $timeout
* @param Closure $closure