Files
Dyxless/dyxless/decorators.py

10 lines
181 B
Python

from threading import Thread
def async_work(f):
def wrapper(*args, **kwargs):
thr = Thread(target=f, args=args, kwargs=kwargs)
thr.start()
return wrapper