改名
This commit is contained in:
@@ -28,8 +28,6 @@ class Channel extends Component
|
||||
*/
|
||||
public function push(mixed $value, string $name = ''): void
|
||||
{
|
||||
unset($value);
|
||||
return;
|
||||
$channel = $this->channelInit($name);
|
||||
$channel->enqueue($value);
|
||||
}
|
||||
@@ -75,8 +73,6 @@ class Channel extends Component
|
||||
*/
|
||||
public function pop(string $name, Closure $closure, int|float $timeout = null): mixed
|
||||
{
|
||||
return call_user_func($closure);
|
||||
|
||||
if (($channel = $this->channelInit($name)) == false) {
|
||||
return $this->addError('Channel is full.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user