Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<EvWatcher::keepaliveEvWatcher::start>
^EvWatcherLast updated: Mon, 26 Oct 2026

EvWatcher::setCallback

(PECL ev >= 0.2.0)

EvWatcher::setCallback — Sets new callback for the watcher

Description

public function EvWatcher::setCallback( callable $callback ): void

Sets new callback for the watcher

Parameters

callback

See Watcher callbacks.

Return Values

No value is returned.


<EvWatcher::keepaliveEvWatcher::start>
^EvWatcherLast updated: Mon, 26 Oct 2026