|
GearmanWorker::setTimeoutSet socket I/O activity timeout Beschreibung
public bool GearmanWorker::setTimeout
( int
$timeout
)Sets the interval of time to wait for socket I/O activity. Parameter-Liste
Rückgabewerte
Always returns Beispiele
Beispiel #1 A simple worker with a 5 second timeout
<?phpRunning 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... Siehe auch
|