From 709e35f4dc950bb6bb471ddef21b3a2d5e8cef50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 3 Apr 2023 00:56:22 +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 c0be03b3..6e67ef24 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); + } }