---
title: isEmpty
framework: swift
role: symbol
role_heading: Instance Property
path: swift/taskgroup/isempty
---

# isEmpty

A Boolean value that indicates whether the group has any remaining tasks.

## Declaration

```swift
var isEmpty: Bool { get }
```

## Return Value

Return Value true if the group has no pending tasks; otherwise false.

## Discussion

Discussion At the start of the body of a withTaskGroup(of:returning:body:) call, the task group is always empty. It’s guaranteed to be empty when returning from that body because a task group waits for all child tasks to complete before returning.

## See Also

### Accessing Individual Results

- [next()](swift/taskgroup/next().md)
- [next(isolation:)](swift/taskgroup/next(isolation:).md)
- [waitForAll(isolation:)](swift/taskgroup/waitforall(isolation:).md)
