改名
This commit is contained in:
@@ -154,7 +154,7 @@ abstract class Pool extends Component
|
||||
}
|
||||
if (!Context::hasContext('create::client::ing::' . $name)) {
|
||||
$this->push($name, $this->createClient($name, $callback));
|
||||
Context::deleteContext('create::client::ing::' . $name);
|
||||
Context::remove('create::client::ing::' . $name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class Connection extends Pool
|
||||
if (!Context::hasContext('begin_' . $coroutineName)) {
|
||||
Context::setContext('begin_' . $coroutineName, 0);
|
||||
}
|
||||
Context::autoIncr('begin_' . $coroutineName);
|
||||
Context::increment('begin_' . $coroutineName);
|
||||
if (!Context::getContext('begin_' . $coroutineName) !== 0) {
|
||||
return;
|
||||
}
|
||||
@@ -84,7 +84,7 @@ class Connection extends Pool
|
||||
if (!Context::hasContext('begin_' . $coroutineName)) {
|
||||
return;
|
||||
}
|
||||
if (Context::autoDecr('begin_' . $coroutineName) > 0) {
|
||||
if (Context::decrement('begin_' . $coroutineName) > 0) {
|
||||
return;
|
||||
}
|
||||
$connection = Context::getContext($coroutineName);
|
||||
@@ -117,7 +117,7 @@ class Connection extends Pool
|
||||
if (!Context::hasContext('begin_' . $coroutineName)) {
|
||||
return;
|
||||
}
|
||||
if (Context::autoDecr('begin_' . $coroutineName) > 0) {
|
||||
if (Context::decrement('begin_' . $coroutineName) > 0) {
|
||||
return;
|
||||
}
|
||||
if (($connection = Context::getContext($coroutineName)) instanceof PDO) {
|
||||
@@ -250,7 +250,7 @@ class Connection extends Pool
|
||||
*/
|
||||
public function remove($coroutineName)
|
||||
{
|
||||
Context::deleteContext($coroutineName);
|
||||
Context::remove($coroutineName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -119,7 +119,7 @@ class Redis extends Pool
|
||||
*/
|
||||
public function remove(string $coroutineName)
|
||||
{
|
||||
Context::deleteContext($coroutineName);
|
||||
Context::remove($coroutineName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user