This commit is contained in:
2023-12-12 15:35:34 +08:00
parent 4ebb7e9686
commit 92e65c4abd
15 changed files with 362 additions and 391 deletions
+2 -4
View File
@@ -3,10 +3,8 @@
namespace Kiri\Server\Task;
use Exception;
use Kiri;
use Kiri\Server\Constant;
use ReflectionException;
use Swoole\Server;
/**
@@ -37,7 +35,7 @@ class Task
* @param int $task_id
* @param mixed $data
* @return void
* @throws ReflectionException
* @throws
*/
public function onFinish(Server $server, int $task_id, mixed $data): void
{
@@ -51,7 +49,7 @@ class Task
* @param int $src_worker_id
* @param mixed $data
* @return mixed
* @throws ReflectionException|Exception
* @throws
*/
public function onTask(Server $server, int $task_id, int $src_worker_id, mixed $data): mixed
{