diff --git a/pyfastogt/decorators.py b/pyfastogt/decorators.py new file mode 100644 index 0000000..3338711 --- /dev/null +++ b/pyfastogt/decorators.py @@ -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