import threading


def run_on_another_thread(function):
    """
    This decorator will run the decorated function in another thread, starting it immediately.
    :param function:
    :return:
    """

    def f(*args, **kargs):
        threading.Thread(target=function, args=[*args, *kargs]).start()

    return f