This commit is contained in:
as2252258@163.com
2021-05-03 03:48:52 +08:00
parent a90e647529
commit 8137b24865
25 changed files with 273 additions and 306 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ namespace Annotation;
use Exception;
use HttpServer\IInterface\Task;
use Snowflake\Snowflake;
@@ -32,10 +33,10 @@ use Snowflake\Snowflake;
* @return bool
* @throws Exception
*/
public function execute(array $handler): bool
public function execute(mixed $class, mixed $method = null): mixed
{
$async = Snowflake::app()->getAsync();
$async->addAsync($this->name, current($handler));
$async->addAsync($this->name, $class);
return true;
}