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

Method send_buffer_nowait

Lib/test/support/channels.py:263–275  ·  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

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

Callers

nothing calls this directly

Calls 2

_serialize_unboundFunction · 0.85
send_bufferMethod · 0.80

Tested by

no test coverage detected