Skip to content

Instance MethodDispatch

asyncAfter(wallDeadline: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(wallDeadline: DispatchWallTime, execute: DispatchWorkItem)

Parameters

deadline

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

execute

The work item to be invoked on the queue.

Discussion

See Also

asyncAfter(wallDeadline:qos:flags:execute:)

See Also

DispatchTime