MCPcopy Index your code
hub / github.com/bslatkin/effectivepython / run

Method run

example_code/item_073.py:70–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 self.out_queue = out_queue
69
70 def run(self):
71 while True:
72 try:
73 item = self.in_queue.get()
74 except ShutDown:
75 return
76 else:
77 result = self.func(item)
78 self.out_queue.put(result)
79 self.in_queue.task_done()
80
81
82def game_logic(state, neighbors):

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected