改名
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user