Time\SIG_Awake::routine PHP Метод

routine() публичный Метод

This checks if the appriorate amount of time has passed and emits the awake signal if so.
public routine ( Routine $routine = null ) : boolean
$routine XPSPL\Routine
Результат boolean
    public function routine(\XPSPL\Routine $routine = null)
    {
        if ($this->get_idle()->has_time_passed()) {
            $routine->add_signal($this);
            $this->get_idle()->set_time($this->_time);
        }
        $routine->add_idle($this);
        return true;
    }