Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -41,11 +41,10 @@ class Pool extends Component
|
||||
|
||||
|
||||
/**
|
||||
* @param Channel $channel
|
||||
* @param Channel|SplQueue $channel
|
||||
* @param $retain_number
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function pop(Channel $channel, $retain_number): void
|
||||
protected function pop(Channel|SplQueue $channel, $retain_number): void
|
||||
{
|
||||
while ($channel->length() > $retain_number) {
|
||||
if (Context::inCoroutine()) {
|
||||
|
||||
Reference in New Issue
Block a user