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
{
if (Context::hasContext('create:connect:' . $coroutineName)) {
while (true){
if (Context::hasContext($coroutineName)){
break;
}
while (!($client = Context::hasContext($coroutineName))){
var_dump($client);
}
return true;
}