code: def with_router(func):
      
      def wrapper(*args, **kwargs):
          return run_with_router(func, *args, **kwargs)
      if mitogen.core.PY3:
          wrapper.func_name = func.__name__
      else:
          wrapper.func_name = func.func_name
      return wrapper
docs: Decorator version of :func:`run_with_router`. Example:
  
      .. code-block:: python
  
          @with_router
          def do_stuff(router, arg):
              pass
  
          do_stuff(blah, 123)