MCPcopy Index your code
hub / github.com/Boris-code/feapder / start

Method start

feapder/utils/tail_thread.py:19–33  ·  view source on GitHub ↗

解决python3.12 RuntimeError: cannot join thread before it is started的报错

(self)

Source from the content-addressed store, hash-verified

17 """
18
19 def start(self) -> None:
20 """
21 解决python3.12 RuntimeError: cannot join thread before it is started的报错
22 """
23 super().start()
24
25 if sys.version_info.minor >= 12 and sys.version_info.major >= 3:
26 for thread in threading.enumerate():
27 if (
28 thread.daemon
29 or thread is threading.current_thread()
30 or not thread.is_alive()
31 ):
32 continue
33 thread.join()

Callers 15

test_rander3.pyFile · 0.45
test_webdirver_poolFunction · 0.45
jd_spider.pyFile · 0.45
test_rander2.pyFile · 0.45
test_rander_xhr.pyFile · 0.45
test_rander.pyFile · 0.45
mongo_spider.pyFile · 0.45

Calls 1

joinMethod · 0.45

Tested by 7

test_webdirver_poolFunction · 0.36
startFunction · 0.36
start2Function · 0.36
test_debugFunction · 0.36