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

# asyncAfter(wallDeadline:qos:flags:execute:)

Schedules a block for execution using the specified attributes, and returns immediately.

```
@preconcurrency func asyncAfter(wallDeadline: DispatchWallTime, qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], execute work: @escaping @Sendable () -> Void)
```

## Parameters

`wallDeadline`

The time at which to schedule the block 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.

`qos`

The quality-of-service class to use when executing the block. This parameter determines the priority with which the block is scheduled and executed. For a list of possible values, see [`DispatchQoS`](/documentation/Dispatch/DispatchQoS).

`flags`

Additional attributes to apply when executing the block. For a list of possible values, see [`DispatchWorkItemFlags`](/documentation/Dispatch/DispatchWorkItemFlags).

`work`

The block containing the work to perform. This block has no return value and no parameters.

## 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)