Instance MethodDispatch
async(group:execute:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
Submits a work item to a dispatch queue and associates it with the given dispatch group. The dispatch group may be used to wait for the completion of the work items it references.
func async(group: DispatchGroup, execute workItem: DispatchWorkItem)
Parameters
groupThe dispatch group to associate with the submitted block.
executeThe work item to be invoked on the queue.
Discussion
See Also
sync(execute:)