Section: C Library Functions (3)
- schedule blocks for deferred execution
Fd #include <dispatch/dispatch.h
Fa dispatch_time_t when dispatch_queue_t queue void (^block)(void)
Fc Ft void
Fa dispatch_time_t when dispatch_queue_t queue void *context void (*function)(void *)
function submits the
to the given
at the time specified by the
parameter is a value created by
Fn dispatch_walltime .
Submission of the block may be delayed by the system in order to improve power consumption and system performance.
The system applies a leeway (see
that is equal to one tenth of the interval between
and the time at which the function is called, with the leeway capped to at least one millisecond and at most one minute.
For a more detailed description about submitting blocks to queues, see
retains the passed queue.
is supported, but is not as efficient as calling
Fn dispatch_async .
The result of passing
parameter is undefined.
function is a wrapper around
Fn dispatch_after_f .