Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b52e7a9

Browse files
committed
clarify recv* are blocking operations; thanks to Chris Kogelnik from docs@
1 parent 441ae04 commit b52e7a9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,8 @@ Connection objects are usually created using :func:`Pipe` -- see also
727727
.. method:: recv()
728728

729729
Return an object sent from the other end of the connection using
730-
:meth:`send`. Raises :exc:`EOFError` if there is nothing left to receive
730+
:meth:`send`. Blocks until there its something to receive. Raises
731+
:exc:`EOFError` if there is nothing left to receive
731732
and the other end was closed.
732733

733734
.. method:: fileno()
@@ -761,7 +762,8 @@ Connection objects are usually created using :func:`Pipe` -- see also
761762
.. method:: recv_bytes([maxlength])
762763

763764
Return a complete message of byte data sent from the other end of the
764-
connection as a string. Raises :exc:`EOFError` if there is nothing left
765+
connection as a string. Blocks until there is something to receive.
766+
Raises :exc:`EOFError` if there is nothing left
765767
to receive and the other end has closed.
766768

767769
If *maxlength* is specified and the message is longer than *maxlength*
@@ -771,7 +773,8 @@ Connection objects are usually created using :func:`Pipe` -- see also
771773
.. method:: recv_bytes_into(buffer[, offset])
772774

773775
Read into *buffer* a complete message of byte data sent from the other end
774-
of the connection and return the number of bytes in the message. Raises
776+
of the connection and return the number of bytes in the message. Blocks
777+
until there is something to receive. Raises
775778
:exc:`EOFError` if there is nothing left to receive and the other end was
776779
closed.
777780

0 commit comments

Comments
 (0)