---
title: "MDQueryIsGatheringComplete(_:)"
framework: coreservices
role: symbol
role_heading: Function
path: coreservices/1413032-mdqueryisgatheringcomplete
---

# MDQueryIsGatheringComplete(_:)

Returns true if the first phase of a query, the initial result gathering, has finished.

## Declaration

```swift
func MDQueryIsGatheringComplete(_ query: MDQuery!) -> Bool
```

## Parameters

- `query`: The query.

## Return Value

Return Value Returns TRUE if the first phase of a query has completed, otherwise FALSE.

## See Also

### Starting, Stopping and Pausing Queries

- [MDQueryExecute(_:_:)](coreservices/1413099-mdqueryexecute.md)
- [MDQueryStop(_:)](coreservices/1413077-mdquerystop.md)
- [MDQueryDisableUpdates(_:)](coreservices/1413041-mdquerydisableupdates.md)
- [MDQueryEnableUpdates(_:)](coreservices/1413066-mdqueryenableupdates.md)
