This commit is contained in:
2023-12-12 14:10:09 +08:00
parent 10f24b60d6
commit 827fb257ab
3 changed files with 2 additions and 27 deletions
-13
View File
@@ -1,14 +1 @@
<?php
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);
});