This commit is contained in:
2021-03-29 14:03:18 +08:00
parent e0267a3cb8
commit bd57493d1a
+1 -1
View File
@@ -76,7 +76,7 @@ class Channel extends Component
* @return mixed
* @throws Exception
*/
public function pop(int|float $timeout, Closure $closure, string $name = '', int $length = 100): mixed
public function pop(int|float $timeout, string $name, Closure $closure, int $length = 100): mixed
{
if (($channel = $this->channelInit($length, $name)) == false) {
return $this->addError('Channel is full.');