def _spawn ( self , func , * args , * * kwargs ) : gevent . spawn ( func , * args , * * kwargs )
python gevent shared param
Spawn a handler function .
def _spawn(self, func, *args, **kwargs):
        """Spawn a handler function.

        Spawns the supplied ``func`` with ``*args`` and ``**kwargs``
        as a gevent greenlet.

        :param func: A callable to call.
        :param args: Arguments to ``func``.
        :param kwargs: Keyword arguments to ``func``.
        """
        gevent.spawn(func, *args, **kwargs)