MCPcopy Index your code
hub / github.com/python/cpython / _echo

Method _echo

Lib/test/_test_multiprocessing.py:3680–3683  ·  view source on GitHub ↗
(cls, conn)

Source from the content-addressed store, hash-verified

3678
3679 @classmethod
3680 def _echo(cls, conn):
3681 for msg in iter(conn.recv_bytes, SENTINEL):
3682 conn.send_bytes(msg)
3683 conn.close()
3684
3685 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3686 def test_connection(self):

Callers

nothing calls this directly

Calls 2

send_bytesMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected