File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,11 @@ def __del__(self):
330
330
self .close (timeout = 0 )
331
331
332
332
def close (self , timeout = None ):
333
- """Close this producer."""
333
+ """Close this producer.
334
+
335
+ Arguments:
336
+ timeout (float, optional): timeout in seconds to wait for completion.
337
+ """
334
338
335
339
# drop our atexit handler now to avoid leaks
336
340
self ._unregister_cleanup ()
@@ -476,6 +480,9 @@ def flush(self, timeout=None):
476
480
Other threads can continue sending messages while one thread is blocked
477
481
waiting for a flush call to complete; however, no guarantee is made
478
482
about the completion of messages sent after the flush call begins.
483
+
484
+ Arguments:
485
+ timeout (float, optional): timeout in seconds to wait for completion.
479
486
"""
480
487
log .debug ("Flushing accumulated records in producer." ) # trace
481
488
self ._accumulator .begin_flush ()
You can’t perform that action at this time.
0 commit comments