Readme: add change_timeout example
This commit is contained in:
@ -91,6 +91,10 @@ foreach ($generator as $envelope) {
|
|||||||
if ($stopSignalReceived) {
|
if ($stopSignalReceived) {
|
||||||
$generator->send(Subscriber::STOP); // Gracefully close connection
|
$generator->send(Subscriber::STOP); // Gracefully close connection
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dynamically change timeout
|
||||||
|
$generator->send(Subscriber::CHANGE_TIMEOUT);
|
||||||
|
$generator->send(10.0); // float required
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user