Source code for beaver_manager.decorators

from threading import Thread


[docs]def async(f): """Decorator that will make any function asynchronus""" def wrapper(*args, **kwargs): thr = Thread(target=f, args=args, kwargs=kwargs) thr.start() return wrapper