| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
GearmanClient::addTaskStatus(PECL gearman >= 0.5.0) GearmanClient::addTaskStatus — Add a task to get status 説明Used to request status information from the Gearman server, which will call the specified status callback (set using GearmanClient::setStatusCallback()). パラメータ
返り値A GearmanTask object. 例
例1 Monitor completion of multiple background tasks An artificial delay is introduced in the worker in this example to simulate a long running process. There is only one worker running for this example.
<?php 上の例の出力は、 たとえば以下のようになります。 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 2 |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「GearmanClient::addTaskStatus - Add a task to get status」をGoogle検索
|