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

Method submit

src/12/defining_an_actor_task/worker.py:18–21  ·  view source on GitHub ↗
(self, func, *args, **kwargs)

Source from the content-addressed store, hash-verified

16
17class Worker(Actor):
18 def submit(self, func, *args, **kwargs):
19 r = Result()
20 self.send((func, args, kwargs, r))
21 return r
22
23 def run(self):
24 while True:

Callers 4

worker.pyFile · 0.80
example3.pyFile · 0.80
echo_serverFunction · 0.80
runMethod · 0.80

Calls 2

ResultClass · 0.85
sendMethod · 0.45

Tested by

no test coverage detected