Files
kiri-core/p.php
T

14 lines
266 B
PHP
Raw Normal View History

2022-01-09 03:50:38 +08:00
<?php
2023-08-28 12:01:30 +08:00
use function Swoole\Coroutine\run;
run(function () {
$channel = new \Swoole\Coroutine\Channel(100);
for ($i = 0; $i < 90; $i++) {
$channel->push(100);
}
$channel->close();
$channel = null;
var_dump($channel);
});