pub fn collect_active_jobs_from_all_queries<'tcx>(
tcx: TyCtxt<'tcx>,
collect_kind: CollectActiveJobsKind,
) -> QueryJobMap<'tcx>Expand description
Returns a map of currently active query jobs, collected from all queries.
If require_complete is true, this function locks all shards of the
query results to produce a complete map, which always returns Ok.
Otherwise, it may return an incomplete map as an error if any shard
lock cannot be acquired.
Prefer passing false to require_complete to avoid potential deadlocks,
especially when called from within a deadlock handler, unless a
complete map is needed and no deadlock is possible at this call site.