(func, *args, **kwargs)
Run a function in a new tasklet, like a goroutine.
    If the goroutine raises an unhandled exception (*panics*),
    the :func:`goless.on_panic` will be called,
    which by default logs the error and exits the process.

    :param args: Positional arguments to ``func``.
    :param kwargs: Keyword arguments to ``func``.
Run a function in a new tasklet, like a goroutine.
    If the goroutine raises an unhandled exception (*panics*),
    the :func:`goless.on_panic` will be called,
    which by default logs the error and exits the process.
Run a function in a new tasklet like a goroutine . If the goroutine raises an unhandled exception ( * panics * ) the : func : goless . on_panic will be called which by default logs the error and exits the process .
def go(func, *args, **kwargs):
    """
    Run a function in a new tasklet, like a goroutine.
    If the goroutine raises an unhandled exception (*panics*),
    the :func:`goless.on_panic` will be called,
    which by default logs the error and exits the process.

    :param args: Positional arguments to ``func``.
    :param kwargs: Keyword arguments to ``func``.
    """

    def safe_wrapped(f):
        # noinspection PyBroadException
        try:
            f(*args, **kwargs)
        except:
            on_panic(*_sys.exc_info())

    _be.start(safe_wrapped, func)
def go ( func , * args , * * kwargs ) : def safe_wrapped ( f ) : # noinspection PyBroadException try : f ( * args , * * kwargs ) except : on_panic ( * _sys . exc_info ( ) ) _be . start ( safe_wrapped , func )