MCPcopy
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
29if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

set_resultMethod · 0.80
funcFunction · 0.50
recvMethod · 0.45

Tested by

no test coverage detected