Initial commit

This commit is contained in:
BarsTiger
2022-04-15 14:02:09 +03:00
commit 968cd6358b
5 changed files with 61 additions and 0 deletions

10
thread.py Normal file
View 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