18 lines
285 B
Python
18 lines
285 B
Python
import threading
|
|
|
|
from .lifecyclemanager import manageLifecycle
|
|
|
|
def buildThread(module):
|
|
|
|
thread = threading.Thread(
|
|
target=manageLifecycle,
|
|
args=(module,),
|
|
name=module.name
|
|
)
|
|
|
|
thread.start()
|
|
|
|
print("THREAD STARTED", thread)
|
|
|
|
return thread
|