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

Method send_buffer_nowait

Lib/test/support/channels.py:259–271  ·  view source on GitHub ↗

Send the object's buffer to the channel's receiving end. If the object is immediately received then return True (else False). Otherwise this is the same as send().

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

Source from the content-addressed store, hash-verified

257 timeout=timeout, blocking=True)
258
259 def send_buffer_nowait(self, obj, *,
260 unbounditems=None,
261 ):
262 """Send the object's buffer to the channel's receiving end.
263
264 If the object is immediately received then return True
265 (else False). Otherwise this is the same as send().
266 """
267 if unbounditems is None:
268 unboundop = -1
269 else:
270 unboundop, = _serialize_unbound(unbounditems)
271 return _channels.send_buffer(self._id, obj, unboundop, blocking=False)
272
273 def close(self):
274 _channels.close(self._id, send=True)

Callers 1

Calls 2

send_bufferMethod · 0.80
_serialize_unboundFunction · 0.70

Tested by 1