fn latch_wait_on<'tcx>( latch: &QueryLatch<'tcx>, query: Option<QueryJobId>, span: Span, ) -> Result<(), QueryCycle<'tcx>>
Awaits for the query job to complete.