def spawn_n(func, *args, **kwargs):
 _context = common_context.get_current()
 profiler_info = _serialize_profile_info()
 @functools.wraps(func)
 def context_wrapper(*args, **kwargs):
  if (_context is not None):
   _context.update_store()
  if (profiler_info and profiler):
   profiler.init(**profiler_info)
  func(*args, **kwargs)
 eventlet.spawn_n(context_wrapper, *args, **kwargs)

def spawn_n ( func , * args , ** kwargs ) : _context = common_context . get_current ( ) profiler_info = _serialize_profile_info ( ) @ functools . wraps ( func ) def context_wrapper ( * args , ** kwargs ) : if ( _context is not None ) : _context . update_store ( ) if ( profiler_info and profiler ) : profiler . init ( ** profiler_info ) func ( * args , ** kwargs ) eventlet . spawn_n ( context_wrapper , * args , ** kwargs )
passthrough method for eventlet .