$tasks
$tasks : array
注入的任务列表
定时任务管理器
$realTasks : array<mixed,\Imi\Cron\CronTask>
真实的任务对象列表
addCron(string $id, string $type, callable|string $task, array $cronRules, mixed $data, float $lockExpire = 3, string|null $unique = null, string|null $redisPool = null, float $lockWaitTimeout = 3, boolean $force = false) : void
增加 Cron 任务
| string | $id | |
| string | $type | |
| callable|string | $task | |
| array | $cronRules | |
| mixed | $data | |
| float | $lockExpire | |
| string|null | $unique | |
| string|null | $redisPool | |
| float | $lockWaitTimeout | |
| boolean | $force |
getRealTasks() : array<mixed,\Imi\Cron\CronTask>
Get 真实的任务对象列表
getTask(string $id) : \Imi\Cron\CronTask|null
获取任务对象
| string | $id |