From cd4aad83de6f7795e999247cb23cb24d468e164d Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 2 May 2021 00:14:08 +0800 Subject: [PATCH] modify --- System/Channel.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/System/Channel.php b/System/Channel.php index e8cc7e4e..8e3c764f 100644 --- a/System/Channel.php +++ b/System/Channel.php @@ -28,7 +28,6 @@ class Channel extends Component */ public function push(mixed $value, string $name = ''): void { - return; $channel = $this->channelInit($name); $channel->enqueue($value); } @@ -74,7 +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.'); }