DispatchAsync_f
Schedule a C-style function for asynchrous execution on the current queue.
Declaration
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.