## remove_cycle

# Function remove_cycle

Source

    fn remove_cycle<I: Clone>(
        query_map: &QueryMap<I>,
        jobs: &mut Vec<QueryJobId>,
        wakelist: &mut Vec<Arc<QueryWaiter<I>>>,
    ) -> bool

Expand description

Looks for query cycles starting from the last query in `jobs`. If a cycle is found, all queries in the cycle is removed from `jobs` and the function return true. If a cycle was not found, the starting query is removed from `jobs` and the function returns false.