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

Method send_buffer

Lib/test/support/channels.py:245–257  ·  view source on GitHub ↗

Send the object's buffer 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

243 return _channels.send(self._id, obj, unboundop, blocking=False)
244
245 def send_buffer(self, obj, timeout=None, *,
246 unbounditems=None,
247 ):
248 """Send the object's buffer to the channel's receiving end.
249
250 This blocks until the object is received.
251 """
252 if unbounditems is None:
253 unboundop = -1
254 else:
255 unboundop, = _serialize_unbound(unbounditems)
256 _channels.send_buffer(self._id, obj, unboundop,
257 timeout=timeout, blocking=True)
258
259 def send_buffer_nowait(self, obj, *,
260 unbounditems=None,

Calls 1

_serialize_unboundFunction · 0.70