9 lines
185 B
Python
9 lines
185 B
Python
|
from threading import Thread
|
||
|
|
||
|
def async(f):
|
||
|
def wrapper(*args, **kwargs):
|
||
|
thr = Thread(target = f, args = args, kwargs = kwargs)
|
||
|
thr.start()
|
||
|
return wrapper
|
||
|
|