// Routes a capability from a `ComponentInstanceForAnalyzer` and panics if the future returned by
// `route_capability` is not ready immediately.
//
// TODO(fxbug.dev/87204): Remove this function and use `route_capability` directly when Scrutiny's
// `DataController`s allow async function calls.
Routes a capability from a `ComponentInstanceForAnalyzer` and panics if the future returned by
`route_capability` is not ready immediately.


Routes a capability from a ` ComponentInstanceForAnalyzer ` and panics if the future returned by ` route_capability ` is not ready immediately .
pub fn route_capability_sync(
        request: RouteRequest,
        target: &Arc<ComponentInstanceForAnalyzer>,
    ) -> Result<
        (
            RouteSource<ComponentInstanceForAnalyzer>,
            <<ComponentInstanceForAnalyzer as ComponentInstanceInterface>::DebugRouteMapper as DebugRouteMapper>::RouteMap,
        ),
        RoutingError>
    {
        route_capability(request, target).now_or_never().expect("future was not ready immediately")
    }
pub fn route_capability_sync ( request : RouteRequest , target : & Arc < ComponentInstanceForAnalyzer > , ) -> Result < ( RouteSource < ComponentInstanceForAnalyzer > , < < ComponentInstanceForAnalyzer as ComponentInstanceInterface > :: DebugRouteMapper as DebugRouteMapper > :: RouteMap , ) , RoutingError > { route_capability ( request , target ) . now_or_never ( ) . expect ( " " ) }
Routes a capability from a `ComponentInstanceForAnalyzer` and panics if the future returned by
`route_capability` is not ready immediately.
Routes a capability from a ` ComponentInstanceForAnalyzer ` and panics if the future returned by ` route_capability ` is not ready immediately .
request
RouteRequest
target
&Arc<ComponentInstanceForAnalyzer>