From 3198d667534d40f53bcc44db6496f090707967b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 13 Aug 2021 15:11:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Async.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/System/Async.php b/System/Async.php index 3671d8fe..d0013ff0 100644 --- a/System/Async.php +++ b/System/Async.php @@ -9,6 +9,7 @@ use HttpServer\IInterface\Task; use ReflectionException; use Kiri\Abstracts\Component; use Server\ServerManager; +use Server\SInterface\TaskExecute; /** * Class Async @@ -21,11 +22,11 @@ class Async extends Component private static array $_absences = []; - /** - * @param string $name - * @param Task $handler - */ - public function addAsync(string $name, Task $handler) + /** + * @param string $name + * @param TaskExecute $handler + */ + public function addAsync(string $name, TaskExecute $handler) { static::$_absences[$name] = $handler::class; }