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

Method send_nowait

Lib/test/support/channels.py:232–247  ·  view source on GitHub ↗

Send the object 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

230 _channels.send(self._id, obj, unboundop, timeout=timeout, blocking=True)
231
232 def send_nowait(self, obj, *,
233 unbounditems=None,
234 ):
235 """Send the object to the channel's receiving end.
236
237 If the object is immediately received then return True
238 (else False). Otherwise this is the same as send().
239 """
240 if unbounditems is None:
241 unboundop = -1
242 else:
243 unboundop, = _serialize_unbound(unbounditems)
244 # XXX Note that at the moment channel_send() only ever returns
245 # None. This should be fixed when channel_send_wait() is added.
246 # See bpo-32604 and gh-19829.
247 return _channels.send(self._id, obj, unboundop, blocking=False)
248
249 def send_buffer(self, obj, timeout=None, *,
250 unbounditems=None,

Callers

nothing calls this directly

Calls 2

_serialize_unboundFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected