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