from typing import Callable
from typing import Iterable
import threading


def start_deamon(function: Callable, args: Iterable = ()) -> threading.Thread:
    """Start a deamon with the given function and arguments."""
    thread = threading.Thread(target = function, args = args)
    thread.daemon = True
    thread.start()
    return thread