ZMQDevice::setIdleCallbackSet the idle callback function 説明public ZMQDevice ZMQDevice::setIdleCallback(callable
$cb_func , int $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). パラメータ
戻り値On success this method returns the current object. |