MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / run

Method run

tensorpack/utils/concurrency.py:87–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 self.daemon = True
86
87 def run(self):
88 while not self.stopped():
89 if self._pausable:
90 self._lock.acquire()
91 self._lock.release()
92 self._func()
93
94 def pause(self):
95 """ Pause the loop """

Callers 1

runMethod · 0.45

Calls 1

stoppedMethod · 0.80

Tested by

no test coverage detected