pub fn despawn_query<Components>(
    components: Components
) -> EventQuery<Components>
where Components: ComponentsTuple + Copy + Clone + 'static,
Expand description

Creates a new EventQuery that will find entities that have the specified components that will call its bound function when an entity with those components are despawned / seen for the last time by this query.