A number of seconds, millisconds, microseconds, or nanoseconds.


enum DispatchTimeInterval


Use DispatchTimeInterval values to specify the interval at which a DispatchSourceTimer fires or I/O handlers are invoked for a DispatchIO channel, as well as to increment and decrement DispatchTime values.


Enumeration Cases

case seconds(Int)

A number of seconds.

case milliseconds(Int)

A number of milliseconds.

case microseconds(Int)

A number of microseconds.

case nanoseconds(Int)

A number of nanoseconds.

case never

No interval.


Conforms To

See Also

Time Constructs

struct DispatchTime

A point in time relative to the default clock, with nanosecond precision.

struct DispatchWallTime

An absolute point in time according to the wall clock, with microsecond precision.

enum DispatchTimeoutResult

A result value indicating whether a dispatch operation finished before a specified time.

typealias dispatch_time_t

An abstract representation of time.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software