<filename>amplify/agent/util/threads.py
# -*- coding: utf-8 -*-
import gevent

from amplify.agent.context import context

__author__ = "<NAME>"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__credits__ = ["<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>"]
__license__ = ""
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"

def spawn(f, *args, **kwargs):
    thread = gevent.spawn(f, *args, **kwargs)
    context.log.debug('started "%s"' % f)
    return thread
