<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchQueue/asyncAfter(wallDeadline:execute:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "s:So17OS_dispatch_queueC8DispatchE10asyncAfter12wallDeadline7executeyAC0D8WallTimeV_AC0D8WorkItemCtF"
  },
  "title" : "asyncAfter(wallDeadline:execute:)"
}
-->

# asyncAfter(wallDeadline:execute:)

Schedules a work item for execution after the specified time, and returns immediately.

```
func asyncAfter(wallDeadline: DispatchWallTime, execute: DispatchWorkItem)
```

## Parameters

`wallDeadline`

The time at which to schedule the work item for execution. Specifying the current time is less efficient than calling the [`async(execute:)`](/documentation/Dispatch/DispatchQueue/async(execute:)) method directly. Do not specify the value in [`distantFuture`](/documentation/Dispatch/DispatchWallTime/distantFuture); doing so is undefined.

`execute`

The work item containing the task to execute. For information on how to create this work item, see [`DispatchWorkItem`](/documentation/Dispatch/DispatchWorkItem).

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)