16 lines
248 B
Python
16 lines
248 B
Python
import threading
|
|
|
|
from .lifecyclemanager import manageLifecycle
|
|
|
|
def buildThread(module):
|
|
|
|
thread = threading.Thread(
|
|
target=manageLifecycle,
|
|
args=(module,),
|
|
name=module.name
|
|
)
|
|
|
|
thread.start()
|
|
|
|
return thread
|