MCPcopy Index your code
hub / github.com/RustPython/RustPython / _echo

Method _echo

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

Source from the content-addressed store, hash-verified

3394
3395 @classmethod
3396 def _echo(cls, conn):
3397 for msg in iter(conn.recv_bytes, SENTINEL):
3398 conn.send_bytes(msg)
3399 conn.close()
3400
3401 def test_connection(self):
3402 conn, child_conn = self.Pipe()

Callers

nothing calls this directly

Calls 3

iterFunction · 0.85
send_bytesMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected