1
0
Fork 0
mirror of https://github.com/fastogt/pyfastogt synced 2025-02-12 16:11:51 +00:00

Decorators

This commit is contained in:
topilski 2020-03-24 10:39:49 -04:00
parent 117d0aeebd
commit 3d2007bda0

9
pyfastogt/decorators.py Normal file
View file

@ -0,0 +1,9 @@
from threading import Thread
def thread_async(f):
def wrapper(*args, **kwargs):
thr = Thread(target=f, args=args, kwargs=kwargs)
thr.start()
return wrapper