MCPcopy
hub / github.com/python-trio/trio / put

Method put

src/trio/testing/_memory_streams.py:44–48  ·  view source on GitHub ↗
(self, data: bytes | bytearray | memoryview)

Source from the content-addressed store, hash-verified

42 self.close()
43
44 def put(self, data: bytes | bytearray | memoryview) -> None:
45 if self._closed:
46 raise _core.ClosedResourceError("virtual connection closed")
47 self._data += data
48 self._lot.unpark_all()
49
50 def _check_max_bytes(self, max_bytes: int | None) -> None:
51 if max_bytes is None:

Callers 15

deliverFunction · 0.80
test_idle_threads_exitFunction · 0.80
run_sync_soon_threadsafeFunction · 0.80
done_callbackFunction · 0.80
thread_fnFunction · 0.80
sync_checkFunction · 0.80
async_checkFunction · 0.80
fFunction · 0.80

Calls 1

unpark_allMethod · 0.80

Tested by 15

deliverFunction · 0.64
test_idle_threads_exitFunction · 0.64
run_sync_soon_threadsafeFunction · 0.64
done_callbackFunction · 0.64
thread_fnFunction · 0.64
sync_checkFunction · 0.64
async_checkFunction · 0.64
fFunction · 0.64