MCPcopy Create free account
hub / github.com/ElementsProject/lightning / FailThread

Class FailThread

tests/plugins/fail_by_itself.py:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10class FailThread(threading.Thread):
11 def __init__(self):
12 super().__init__()
13 self.start()
14
15 def run(self):
16 time.sleep(1)
17 print("Exiting!")
18 os._exit(1)
19
20
21@plugin.init()

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected