<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IODispatchQueue/DispatchAsync_f",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IODispatchQueue@F@DispatchAsync_f#*v#*Fv(#S0_)#"
  },
  "title" : "DispatchAsync_f"
}
-->

# DispatchAsync_f

Schedule a C-style function for asynchrous execution on the current queue.

```
void DispatchAsync_f(void *context, IODispatchFunction function);
```

## Parameters

`context`

A pointer to contextual data that you want to pass to the function.

`function`

The function to execute on the queue.

## Discussion

This method schedules the function for execution on the queue and returns immediately, without waiting for execution of the function to begin. The system retains the queue until the function completes.

---

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)