ZMQDevice::setIdleCallbackSet the idle callback function Description
public ZMQDevice ZMQDevice::setIdleCallback
( callable
$cb_func
, integer $timeout
[, mixed $user_data
] )Sets the idle callback function. If idle timeout is defined the idle callback function shall be called if the internal poll loop times out without events. If the callback function returns false or a value that evaluates to false the device is stopped. The callback function signature is callback (mixed $user_data). Parameters
Return ValuesOn success this method returns the current object. |