Conflict name
This commit is contained in:
10
ezzthread.py
Normal file
10
ezzthread.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import threading
|
||||
|
||||
|
||||
def threaded(func):
|
||||
"""
|
||||
Decorator to start a function in a new thread
|
||||
"""
|
||||
def thr(*args, **kwargs):
|
||||
threading.Thread(target=func, args=(*args,), kwargs={**kwargs, }).start()
|
||||
return thr
|
||||
Reference in New Issue
Block a user