在线文档教程
PHP
处理控制 | Process Control

EvTimer::again

EvTimer::again

(PECL ev >= 0.2.0)

EvTimer::again — Restarts the timer watcher

Description

public void EvTimer::again ( void )

This will act as if the timer timed out and restart it again if it is repeating. The exact semantics are:

  • if the timer is pending, its pending status is cleared.

  • if the timer is started but non-repeating, stop it (as if it timed out).

  • if the timer is repeating, either start it if necessary (with the repeat value), or reset the running timer to the repeat value. ParametersThis function has no parameters.Return Values No value is returned. See Also

  • EvWatcher::stop() - Stops the watcher

← EvTimer

EvTimer::__construct →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/evtimer.again.php