This commit is contained in:
2021-02-16 23:44:37 +08:00
parent 045e73bd63
commit 63e4bbb987
+2 -4
View File
@@ -127,10 +127,8 @@ abstract class Pool extends Component
public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|false public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|false
{ {
if (Context::hasContext('create:connect:' . $coroutineName)) { if (Context::hasContext('create:connect:' . $coroutineName)) {
while (true){ while (!($client = Context::hasContext($coroutineName))){
if (Context::hasContext($coroutineName)){ var_dump($client);
break;
}
} }
return true; return true;
} }