MCPcopy
hub / github.com/zeromq/pyzmq / send_multipart

Method send_multipart

zmq/green/core.py:284–292  ·  view source on GitHub ↗

wrap send_multipart to prevent state_changed on each partial send

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

282 self._wait_read()
283
284 def send_multipart(self, *args, **kwargs):
285 """wrap send_multipart to prevent state_changed on each partial send"""
286 self.__in_send_multipart = True
287 try:
288 msg = super().send_multipart(*args, **kwargs)
289 finally:
290 self.__in_send_multipart = False
291 self.__state_changed()
292 return msg
293
294 def recv_multipart(self, *args, **kwargs):
295 """wrap recv_multipart to prevent state_changed on each partial recv"""

Callers 15

_relayFunction · 0.45
_send_zap_replyMethod · 0.45
deviceFunction · 0.45
emitMethod · 0.45
thr_sinkFunction · 0.45
throughputFunction · 0.45
test_socket.pyFile · 0.45
mainFunction · 0.45
testMethod · 0.45
test_replyMethod · 0.45
test_queueMethod · 0.45
test_monitorMethod · 0.45

Calls 1

__state_changedMethod · 0.95

Tested by 15

mainFunction · 0.36
testMethod · 0.36
test_replyMethod · 0.36
test_queueMethod · 0.36
test_monitorMethod · 0.36
test_prefixMethod · 0.36
test_router_routerMethod · 0.36
test_trackerMethod · 0.36
test_recv_intoMethod · 0.36
test_basic_multipartMethod · 0.36