---
title: DispatchAsync_f
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iodispatchqueue/3438191-dispatchasync_f
---

# DispatchAsync_f

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

## Declaration

```occ
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

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.

## See Also

### Executing a Task Asynchronously

- [IODispatchBlock](driverkit/iodispatchblock.md)
- [IODispatchFunction](driverkit/iodispatchfunction.md)
- [DispatchAsync](kernel/iodispatchqueue/3438190-dispatchasync.md)
