Skip to content

Commit a0c04cb

Browse files
authored
improve poll section (#364)
1 parent 7f55e5a commit a0c04cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ $producer = new \RdKafka\Producer($conf);
300300
$consumer = new \RdKafka\Consumer($conf);
301301
```
302302

303-
Polling after producing can also be important to reduce termination times:
303+
It is advised to call poll at regular intervals to serve callbacks. In `php-rdkafka:3.x`
304+
poll was also called during shutdown, so not calling it in regular intervals might
305+
lead to a slightly longer shutdown. The example below polls until there are no more events in the queue:
304306

305307
```
306308
$producer->produce(...);

0 commit comments

Comments
 (0)