MCPcopy Index your code
hub / github.com/dabeaz/python-cookbook / recv

Method recv

src/12/defining_an_actor_task/actor.py:18–25  ·  view source on GitHub ↗

Receive an incoming message

(self)

Source from the content-addressed store, hash-verified

16 self._mailbox.put(msg)
17
18 def recv(self):
19 '''
20 Receive an incoming message
21 '''
22 msg = self._mailbox.get()
23 if msg is ActorExit:
24 raise ActorExit()
25 return msg
26
27 def close(self):
28 '''

Callers 15

runMethod · 0.95
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
echo_clientFunction · 0.45
echo_clientFunction · 0.45
getMethod · 0.45
handle_connectionMethod · 0.45
do_rpcMethod · 0.45
do_rpcMethod · 0.45
handle_connectionMethod · 0.45
echo_clientFunction · 0.45

Calls 2

ActorExitClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected