<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchQueue/async(group:execute:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "s:So17OS_dispatch_queueC8DispatchE5async5group7executeySo0a1_b1_F0C_AC0D8WorkItemCtF"
  },
  "title" : "async(group:execute:)"
}
-->

# async(group:execute:)

Schedules a work item asynchronously for execution and associates it with the specified dispatch group.

```
func async(group: DispatchGroup, execute workItem: DispatchWorkItem)
```

## Parameters

`group`

The dispatch group to associate with the work item. This parameter cannot be `NULL`.

`workItem`

The work item containing the task to execute. For information on how to create this work item, see [`DispatchWorkItem`](/documentation/Dispatch/DispatchWorkItem).

## Discussion

This method adds the work item to the group before scheduling it on the current queue.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)