src/Cron.php
static function create(string $name, int $interval) {
        if (isset(self::$_instances[$name]))
            Console::warning("Overwriting cron service \"$name\".");
        self::$_instances[$name] = new self($interval);
    }
static function create(string $name, int $interval) {
        if (isset(self::$_instances[$name]))
            Console::warning("Overwriting cron service \"$name\".");
        self::$_instances[$name] = new self($interval);
    }
创建一个计划任务服务

@param string $name
@param int $interval