Development of daun-builder

This commit is contained in:
BarsTiger
2022-04-10 13:23:00 +03:00
parent b727a9e23b
commit e5b3674e4b
6 changed files with 212 additions and 141 deletions

11
modules/thread.py Normal file
View File

@@ -0,0 +1,11 @@
# Module to easily create threads
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