变更
This commit is contained in:
@@ -16,11 +16,11 @@ class PoolQueue implements QueueInterface
|
|||||||
*/
|
*/
|
||||||
public function __construct(public int $max)
|
public function __construct(public int $max)
|
||||||
{
|
{
|
||||||
// if (Context::inCoroutine()) {
|
if (Context::inCoroutine()) {
|
||||||
$this->queue = new Channel($this->max);
|
$this->queue = new Channel($this->max);
|
||||||
// } else {
|
} else {
|
||||||
// $this->queue = new SplQueue($this->max);
|
$this->queue = new SplQueue($this->max);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user