PHP » GoLang |
login |
register |
about
|
GoLang GearmanWorker::setTimeout
request it (349)
GoLang replacement for PHP's GearmanWorker::setTimeout
[edit | history]
GearmanWorker::setTimeout(PECL gearman >= 0.6.0) GearmanWorker::setTimeout — Set socket I/O activity timeout Description
public bool GearmanWorker::setTimeout
( int
$timeout
)Sets the interval of time to wait for socket I/O activity. Parameters
Return Values
Always returns Examples
Example #1 A simple worker with a 5 second timeout
<?php Running the worker with no submitted jobs will generate output that looks like the following: Starting Waiting for job... Timeout. Waiting for next job... Timeout. Waiting for next job... Timeout. Waiting for next job... |
more
Recently updated
more
Most requested
more
Last requests
|