From 00efca071f9b207c3faf4b4ffaaf5aa92ca7dbad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 3 Apr 2023 00:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Pool/PoolQueue.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kiri-engine/Pool/PoolQueue.php b/kiri-engine/Pool/PoolQueue.php index 6e67ef24..c0be03b3 100644 --- a/kiri-engine/Pool/PoolQueue.php +++ b/kiri-engine/Pool/PoolQueue.php @@ -16,11 +16,11 @@ class PoolQueue implements QueueInterface */ public function __construct(public int $max) { - if (Context::inCoroutine()) { +// if (Context::inCoroutine()) { $this->queue = new Channel($this->max); - } else { - $this->queue = new SplQueue($this->max); - } +// } else { +// $this->queue = new SplQueue($this->max); +// } }