Skip to content

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

group

The dispatch group to associate with the submitted block.

execute

The work item to be invoked on the queue.

Discussion

See Also

sync(execute:)