MCPcopy Index your code
hub / github.com/PyQt5/PyQt / Thread

Class Thread

QThread/QuitThread.py:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class Thread(QThread):
23
24 def run(self):
25 print('thread id', QThread.currentThread())
26 i = 0
27 while i < 101 and not self.isInterruptionRequested():
28 print('value', i, time())
29 i += 1
30 QThread.msleep(500)
31 print('thread quit')
32
33
34if __name__ == '__main__':

Callers 2

QuitThread.pyFile · 0.70
loadResourceMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected