def start_router(router_class, router_name):
    """Wrapper for starting a router and register it.

    Args:
        router_class: The router class to instantiate.
        router_name: The name to give to the router.

    Returns:
        A handle to newly started router actor.
    """
    handle = router_class.remote(router_name)
    ray.experimental.register_actor(router_name, handle)
    handle.start.remote()
    return handle
def start_router ( router_class , router_name ) : handle = router_class . remote ( router_name ) ray . experimental . register_actor ( router_name , handle ) handle . start . remote ( ) return handle
Wrapper for starting a router and register it.

    Args:
        router_class: The router class to instantiate.
        router_name: The name to give to the router.

    Returns:
        A handle to newly started router actor.