]> granicus.if.org Git - python/commitdiff
Documented QueueListener change.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 25 Feb 2011 16:05:26 +0000 (16:05 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 25 Feb 2011 16:05:26 +0000 (16:05 +0000)
Doc/library/logging.handlers.rst

index eda93023d8a7e8bc2315db928a07eab2fbc976b5..9346e9966c1a24c67f1a7f3928f5eda7fdb84c4f 100644 (file)
@@ -838,6 +838,15 @@ possible, while any potentially slow operations (such as sending an email via
       Note that if you don't call this before your application exits, there
       may be some records still left on the queue, which won't be processed.
 
+   .. method:: enqueue_sentinel()
+
+      Writes a sentinel to the queue to tell the listener to quit. This
+      implementation uses ``put_nowait()``.  You may want to override this
+      method if you want to use timeouts or work with custom queue
+      implementations.
+
+      .. versionadded:: 3.3
+
 
 .. seealso::