Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dabeaz/python-cookbook
/ run
Method
run
src/12/defining_an_actor_task/worker.py:23–26 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
21
return
r
22
23
def
run(self):
24
while
True:
25
func, args, kwargs, r = self.recv()
26
r.set_result(func(*args, **kwargs))
27
28
# Example use
29
if
__name__ ==
'__main__'
:
Callers
nothing calls this directly
Calls
3
set_result
Method · 0.80
func
Function · 0.50
recv
Method · 0.45
Tested by
no test coverage detected