This commit is contained in:
as2252258@163.com
2021-05-02 05:22:20 +08:00
parent c32ae6ffd9
commit c67156ce2d
+3
View File
@@ -29,6 +29,9 @@ class Channel extends Component
public function push(mixed $value, string $name = ''): void
{
$channel = $this->channelInit($name);
if ($channel->count() >= 100) {
return;
}
$channel->enqueue($value);
}