ZMQDevice::setTimerCallbackSet the timer callback function 説明
public ZMQDevice ZMQDevice::setTimerCallback(callable
$cb_func , int $timeout , mixed $user_data = ?)Sets the timer callback function. The timer callback will be invoked after timeout has passed. The difference between idle and timer callbacks are that idle callback is invoked only when the device is idle. The callback function signature is callback (mixed $user_data). Added in ZMQ extension version 1.1.0. パラメータ
戻り値On success this method returns the current object. |