---
title: dispatch_function_t
framework: dispatch
role: symbol
role_heading: Type Alias
path: dispatch/dispatch_function_t
---

# dispatch_function_t

The prototype of functions submitted to dispatch queues.

## Declaration

```occ
typedef void (*)(void *) dispatch_function_t;
```

## Discussion

Discussion Functions that take a dispatch_function_t type as a parameter also take a pointer to contextual data that you provide. When your dispatch function is called, the pointer to that contextual data is passed as the parameter to the function. The pointer to the contextual data is passed unmodified to your function and it is your responsibility to ensure that the pointer is valid.

## See Also

### Executing Tasks Asynchronously

- [dispatch_async](dispatch/dispatch_async.md)
- [dispatch_async_f](dispatch/dispatch_async_f.md)
- [dispatch_after](dispatch/dispatch_after.md)
- [dispatch_after_f](dispatch/dispatch_after_f.md)
- [dispatch_block_t](dispatch/dispatch_block_t.md)
