mirror of
https://github.com/Llloooggg/Dyxless.git
synced 2026-03-06 18:56:24 +03:00
10 lines
181 B
Python
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
|