Skip to content

Instance MethodDispatch

asyncAfter(wallDeadline:qos:flags:execute:)

Submits a work item to a dispatch queue for asynchronous execution after a specified time.
func asyncAfter(wallDeadline: DispatchWallTime, qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], execute work: @escaping @Sendable () -> Void)

Parameters

deadline

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

qos

The QoS at which the work item should be executed. Defaults to DispatchQoS.unspecified.

flags

Flags that control the execution environment of the work item.

execute

The work item to be invoked on the queue.

Discussion

See Also

async(execute:)

See Also

asyncAfter(wallDeadline:execute:)

See Also

DispatchQoS

See Also

DispatchWorkItemFlags

See Also

DispatchWallTime