This commit is contained in:
2021-04-16 14:02:00 +08:00
parent 863c3983e6
commit b767f3acb2
+2
View File
@@ -93,6 +93,8 @@ class Channel extends Component
*/
public function pop(string $name, Closure $closure, int|float $timeout = null, int $length = 999): mixed
{
return call_user_func($closure);
if (($channel = $this->channelInit($length, $name)) == false) {
return $this->addError('Channel is full.');
}