mirror of
https://github.com/Llloooggg/Dyxless.git
synced 2026-03-06 02:36:24 +03:00
Добавлена работа с email
This commit is contained in:
9
dyxless/decorators.py
Normal file
9
dyxless/decorators.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from threading import Thread
|
||||
|
||||
|
||||
def async_work(f):
|
||||
def wrapper(*args, **kwargs):
|
||||
thr = Thread(target=f, args=args, kwargs=kwargs)
|
||||
thr.start()
|
||||
|
||||
return wrapper
|
||||
Reference in New Issue
Block a user