From 0b29e15af6ea60389ce1dc712aae5b2a5e85e656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 15 Aug 2023 23:50:34 +0800 Subject: [PATCH] qqq --- kiri-engine/Pool/Pool.php | 40 --------------------------------------- 1 file changed, 40 deletions(-) diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index 14e27739..8f765a67 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -44,46 +44,6 @@ class Pool extends Component } - /** - * @param $name - * @return array - */ - public function check($name): array - { -// $channel = $this->channel($name); -// if ($channel->size() < 1) { -// return [0, 0]; -// } -// -// if ($this->status->is(StatusEnum::EXIT)) { -// $channel->close(); -// return [0, 0]; -// } -// -// $success = 0; -// $lists = []; -// $count = $channel->size(); -// while ($this->status->is(StatusEnum::EXIT) === false) { -// if (!(($pdo = $channel->pop(0.001)) instanceof PDO)) { -// break; -// } -// if ($pdo->check()) { -// $success += 1; -// } -// $lists[] = $pdo; -// } -// if ($this->status->is(StatusEnum::EXIT) === false) { -// foreach ($lists as $list) { -// $channel->push($list); -// } -// } else { -// $channel->close(); -// } -// return [$count, $success]; - return [0, 0]; - } - - /** * @param $name * @param int $max