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,
)
| 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) |