PHPDaemon\Core\Timer::timeout PHP 메소드

timeout() 공개 메소드

Sets timeout
public timeout ( integer $timeout = null ) : void
$timeout integer Timeout
리턴 void
    public function timeout($timeout = null)
    {
        if ($timeout !== null) {
            $this->lastTimeout = $timeout;
        }
        $this->ev->add($this->lastTimeout / 1000000.0);
    }