Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
17
class
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.py
File · 0.80
example3.py
File · 0.80
echo_server
Function · 0.80
run
Method · 0.80
Calls
2
Result
Class · 0.85
send
Method · 0.45
Tested by
no test coverage detected