Skip to content

Instance MethodDispatch

asyncAfter(deadline:execute:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+
Submits a work item to a dispatch queue for asynchronous execution after a specified time.
func asyncAfter(deadline: DispatchTime, execute: DispatchWorkItem)

Parameters

deadline

The time after which the work item should be executed, given as a DispatchTime.

execute

The work item to be invoked on the queue.

Discussion

See Also

asyncAfter(deadline:qos:flags:execute:)

See Also

DispatchTime