PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

ZMQDevice::setTimerCallback - Set the timer callback function | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

ZMQDevice::setTimerCallback

(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)

ZMQDevice::setTimerCallbackSet the timer callback function

説明

public ZMQDevice ZMQDevice::setTimerCallback ( callable $cb_func , integer $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.

パラメータ

cb_func

Callback function to invoke when the device is idle. Returning false or a value that evaluates to false from this function will cause the device to stop.

timeout

How often to invoke the idle callback in milliseconds. The idle callback is invoked periodically when there is no activity on the device. The timeout value guarantees that there is at least this amount of milliseconds between invocations of the callback function.

user_data

Additional data to pass to the callback function.

返り値

On success this method returns the current object.


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「ZMQDevice::setTimerCallback - Set the timer callback function」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | ZMQDevice::setTimerCallback - Set the timer callback function」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: