GearmanWorker::wait(PECL gearman >= 0.6.0) GearmanWorker::wait — Wait for activity from one of the job servers Описание
public bool GearmanWorker::wait
( void
)
Causes the worker to wait for activity from one of the Gearman job servers when operating in non-blocking I/O mode. On failure, issues a E_WARNING with the last Gearman error encountered. Список параметровУ этой функции нет параметров. Возвращаемые значенияВозвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. Примеры
Пример #1 Running worker in non-blocking mode
<?php |
||