Skip to content

Commit 654ef89

Browse files
committed
Add put / put_nowait function document
1 parent 40ad348 commit 654ef89

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Doc/library/concurrent.interpreters.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,24 @@ Communicating Between Interpreters
350350
The queue's ID.
351351

352352

353+
.. method:: put(obj, block=True, timeout=None, *, unbounditems=None)
354+
355+
Add the object to the queue.
356+
357+
This method behaves like :meth:`queue.Queue.put`, with the additional
358+
*unbounditems* parameter. See :func:`create_queue` for details on
359+
the *unbounditems* parameter and its behavior.
360+
361+
362+
.. method:: put_nowait(obj, *, unbounditems=None)
363+
364+
Add the object to the queue without blocking.
365+
366+
This method behaves like :meth:`queue.Queue.put_nowait`, with the
367+
additional *unbounditems* parameter. See :func:`create_queue` for
368+
details on the *unbounditems* parameter and its behavior.
369+
370+
353371
.. exception:: QueueEmpty
354372

355373
This exception, a subclass of :exc:`queue.Empty`, is raised from

0 commit comments

Comments
 (0)