MCPcopy
hub / github.com/aosabook/500lines / run

Method run

cluster/code/cluster.py:99–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 return node
98
99 def run(self):
100 while self.timers:
101 next_timer = self.timers[0]
102 if next_timer.expires > self.now:
103 self.now = next_timer.expires
104 heapq.heappop(self.timers)
105 if next_timer.cancelled:
106 continue
107 if not next_timer.address or next_timer.address in self.nodes:
108 next_timer.callback()
109
110 def stop(self):
111 self.timers = []

Callers 15

mainFunction · 0.95
mainFunction · 0.45
pandoc_cmdFunction · 0.45
runFunction · 0.45
iFunction · 0.45
cWFunction · 0.45
run_exampleFunction · 0.45
runFunction · 0.45
repeatFunction · 0.45
onLeftFunction · 0.45
onRightFunction · 0.45
onUpFunction · 0.45

Calls

no outgoing calls

Tested by 1

run_testsMethod · 0.36