Crunz\Schedule::id PHP Method

id() protected method

Generate a unique task id
protected id ( ) : string
return string
    protected function id()
    {
        while (true) {
            $id = uniqid();
            if (!array_key_exists($id, $this->events)) {
                return $id;
            }
        }
    }