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

Method send

Lib/test/support/channels.py:215–226  ·  view source on GitHub ↗

Send the object (i.e. its data) to the channel's receiving end. This blocks until the object is received.

(self, obj, timeout=None, *,
             unbounditems=None,
             )

Source from the content-addressed store, hash-verified

213 return info.closed or info.closing
214
215 def send(self, obj, timeout=None, *,
216 unbounditems=None,
217 ):
218 """Send the object (i.e. its data) to the channel's receiving end.
219
220 This blocks until the object is received.
221 """
222 if unbounditems is None:
223 unboundop = -1
224 else:
225 unboundop, = _serialize_unbound(unbounditems)
226 _channels.send(self._id, obj, unboundop, timeout=timeout, blocking=True)
227
228 def send_nowait(self, obj, *,
229 unbounditems=None,

Callers 2

send_nowaitMethod · 0.45

Calls 1

_serialize_unboundFunction · 0.70

Tested by 1