13 lines
219 B
Python
13 lines
219 B
Python
import threading
|
|
|
|
|
|
def spawn(target, *args, **kwargs):
|
|
thread = threading.Thread(
|
|
target=target,
|
|
args=args,
|
|
kwargs=kwargs,
|
|
)
|
|
thread.daemon = True
|
|
thread.start()
|
|
return thread
|