One Logo Pool Ball
System · IOS API REFERENCE

Dispatch

Execute code concurrently on multicore hardware by submitting work to dispatch queues managed by the system.

119 types

276 callable entries

39 skipped

88% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

dispatch_data_t

typealias

dispatch_group_t

typealias

dispatch_io_t

typealias

dispatch_object_t

typealias

dispatch_queue_attr_t

typealias

dispatch_queue_concurrent_t

typealias

dispatch_queue_global_t

typealias

dispatch_queue_main_t

typealias

dispatch_queue_serial_executor_t

typealias

dispatch_queue_serial_t

typealias

dispatch_queue_t

typealias

dispatch_semaphore_t

typealias

dispatch_source_mach_recv_flags_t

typealias

dispatch_source_t

typealias

dispatch_time_t

typealias

dispatch_workloop_t

typealias

DispatchConcurrentQueue

class · iOS 12.0+

DispatchConcurrentQueue.Attributes

struct · iOS 17.0+

DispatchConcurrentQueue.Attributes.ArrayLiteralElement

typealias · iOS 17.0+

DispatchConcurrentQueue.Attributes.Element

typealias · iOS 17.0+

DispatchConcurrentQueue.Attributes.RawValue

typealias · iOS 17.0+

DispatchData

struct

DispatchData.Deallocator

enum

DispatchData.Element

typealias

DispatchData.Index

typealias

DispatchData.Indices

typealias

DispatchData.Iterator

typealias

DispatchData.SubSequence

typealias

DispatchDataIterator

struct

DispatchDataIterator.Element

typealias

DispatchDataIterator.Iterator

typealias

DispatchGroup

class

DispatchIO

class

DispatchIO.CloseFlags

struct

DispatchIO.CloseFlags.ArrayLiteralElement

typealias

DispatchIO.CloseFlags.Element

typealias

DispatchIO.CloseFlags.RawValue

typealias

DispatchIO.IntervalFlags

struct

DispatchIO.IntervalFlags.ArrayLiteralElement

typealias

DispatchIO.IntervalFlags.Element

typealias

DispatchIO.IntervalFlags.RawValue

typealias

DispatchIO.StreamType

enum

DispatchIO.StreamType.RawValue

typealias

DispatchObject

class

DispatchPredicate

enum · iOS 10.0+

DispatchQoS

struct

DispatchQoS.QoSClass

enum

DispatchQueue

class

DispatchQueue.Attributes

struct

DispatchQueue.Attributes.ArrayLiteralElement

typealias

DispatchQueue.Attributes.Element

typealias

DispatchQueue.Attributes.RawValue

typealias

DispatchQueue.AutoreleaseFrequency

enum

DispatchQueue.GlobalQueuePriority

enum

DispatchQueue.SchedulerOptions

struct · iOS 13.0+

DispatchQueue.SchedulerTimeType

struct · iOS 13.0+

DispatchQueue.SchedulerTimeType.Stride

struct · iOS 13.0+

DispatchQueue.SchedulerTimeType.Stride.FloatLiteralType

typealias · iOS 13.0+

DispatchQueue.SchedulerTimeType.Stride.IntegerLiteralType

typealias · iOS 13.0+

DispatchQueue.SchedulerTimeType.Stride.Magnitude

typealias · iOS 13.0+

DispatchSemaphore

class

DispatchSerialQueue

class · iOS 12.0+

DispatchSerialQueue.Attributes

struct · iOS 17.0+

DispatchSerialQueue.Attributes.ArrayLiteralElement

typealias · iOS 17.0+

DispatchSerialQueue.Attributes.Element

typealias · iOS 17.0+

DispatchSerialQueue.Attributes.RawValue

typealias · iOS 17.0+

DispatchSource

class

DispatchSource.DispatchSourceHandler

typealias

DispatchSource.FileSystemEvent

struct

DispatchSource.FileSystemEvent.ArrayLiteralElement

typealias

DispatchSource.FileSystemEvent.Element

typealias

DispatchSource.FileSystemEvent.RawValue

typealias

DispatchSource.MachSendEvent

struct

DispatchSource.MachSendEvent.ArrayLiteralElement

typealias

DispatchSource.MachSendEvent.Element

typealias

DispatchSource.MachSendEvent.RawValue

typealias

DispatchSource.MemoryPressureEvent

struct

DispatchSource.MemoryPressureEvent.ArrayLiteralElement

typealias

DispatchSource.MemoryPressureEvent.Element

typealias

DispatchSource.MemoryPressureEvent.RawValue

typealias

DispatchSource.ProcessEvent

struct

DispatchSource.ProcessEvent.ArrayLiteralElement

typealias

DispatchSource.ProcessEvent.Element

typealias

DispatchSource.ProcessEvent.RawValue

typealias

DispatchSource.TimerFlags

struct

DispatchSource.TimerFlags.ArrayLiteralElement

typealias

DispatchSource.TimerFlags.Element

typealias

DispatchSource.TimerFlags.RawValue

typealias

DispatchSourceFileSystemObject

protocol

DispatchSourceMachReceive

protocol

DispatchSourceMachSend

protocol

DispatchSourceMemoryPressure

protocol

DispatchSourceProcess

protocol

DispatchSourceProtocol

protocol

DispatchSourceProtocol.DispatchSourceHandler

typealias

DispatchSourceRead

protocol

DispatchSourceSignal

protocol

DispatchSourceTimer

protocol

DispatchSourceUserDataAdd

protocol

DispatchSourceUserDataOr

protocol

DispatchSourceUserDataReplace

protocol

DispatchSourceWrite

protocol

DispatchSpecificKey

class

DispatchTime

struct

DispatchTimeInterval

enum

DispatchTimeoutResult

enum

DispatchWallTime

struct

DispatchWorkItem

class · iOS 8.0+

DispatchWorkItemFlags

struct

DispatchWorkItemFlags.ArrayLiteralElement

typealias

DispatchWorkItemFlags.Element

typealias

DispatchWorkItemFlags.RawValue

typealias

DispatchWorkloop

class · iOS 12.0+

DispatchWorkloop.Attributes

struct · iOS 17.0+

DispatchWorkloop.Attributes.ArrayLiteralElement

typealias · iOS 17.0+

DispatchWorkloop.Attributes.Element

typealias · iOS 17.0+

DispatchWorkloop.Attributes.RawValue

typealias · iOS 17.0+

OS_dispatch_queue_global

class

OS_dispatch_queue_main

class

Functions and constants

get · iOS 12.0+

DISPATCH_WALLTIME_NOW

TypeScript
const DISPATCH_WALLTIME_NOW: number
Swift declaration
var DISPATCH_WALLTIME_NOW: UInt { get }
function · iOS 17.4+

dispatch_allow_send_signals

TypeScript
dispatch_allow_send_signals(preserve_signum: number): number
Swift declaration
func dispatch_allow_send_signals(_ preserve_signum: Int32) -> Int32
function · iOS 4.0+

dispatchMain

TypeScript
dispatchMain(): never
Swift declaration
func dispatchMain() -> Never
get

DISPATCH_API_VERSION

TypeScript
const DISPATCH_API_VERSION: number
Swift declaration
var DISPATCH_API_VERSION: Int32 { get }
get

DISPATCH_APPLY_AUTO_AVAILABLE

TypeScript
const DISPATCH_APPLY_AUTO_AVAILABLE: number
Swift declaration
var DISPATCH_APPLY_AUTO_AVAILABLE: Int32 { get }
get

DISPATCH_ONCE_INLINE_FASTPATH

TypeScript
const DISPATCH_ONCE_INLINE_FASTPATH: number
Swift declaration
var DISPATCH_ONCE_INLINE_FASTPATH: Int32 { get }
get

DISPATCH_SWIFT3_OVERLAY

TypeScript
const DISPATCH_SWIFT3_OVERLAY: number
Swift declaration
var DISPATCH_SWIFT3_OVERLAY: Int32 { get }
get

MSEC_PER_SEC

TypeScript
const MSEC_PER_SEC: number
Swift declaration
var MSEC_PER_SEC: UInt64 { get }
get

NSEC_PER_MSEC

TypeScript
const NSEC_PER_MSEC: number
Swift declaration
var NSEC_PER_MSEC: UInt64 { get }
get

NSEC_PER_SEC

TypeScript
const NSEC_PER_SEC: number
Swift declaration
var NSEC_PER_SEC: UInt64 { get }
get

NSEC_PER_USEC

TypeScript
const NSEC_PER_USEC: number
Swift declaration
var NSEC_PER_USEC: UInt64 { get }
get

USEC_PER_SEC

TypeScript
const USEC_PER_SEC: number
Swift declaration
var USEC_PER_SEC: UInt64 { get }
init

init

TypeScript
static init(): DispatchSpecificKey<unknown>
Swift declaration
init()

Skipped declarations

39 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

DISPATCH_IO_RANDOM

The iOS SDK compiler rejected this binding: 'DISPATCH_IO_RANDOM' has been renamed to 'DispatchIO.StreamType.random'

DISPATCH_IO_STOP

The iOS SDK compiler rejected this binding: 'DISPATCH_IO_STOP' has been renamed to 'DispatchIO.CloseFlags.stop'

DISPATCH_IO_STREAM

The iOS SDK compiler rejected this binding: 'DISPATCH_IO_STREAM' has been renamed to 'DispatchIO.StreamType.stream'

DISPATCH_IO_STRICT_INTERVAL

The iOS SDK compiler rejected this binding: 'DISPATCH_IO_STRICT_INTERVAL' has been renamed to 'DispatchIO.IntervalFlags.strictInterval'

DISPATCH_MACH_SEND_DEAD

The iOS SDK compiler rejected this binding: 'DISPATCH_MACH_SEND_DEAD' has been renamed to 'DispatchSource.MachSendEvent.dead'

DISPATCH_MEMORYPRESSURE_CRITICAL

The iOS SDK compiler rejected this binding: 'DISPATCH_MEMORYPRESSURE_CRITICAL' has been renamed to 'DispatchSource.MemoryPressureEvent.critical'

DISPATCH_MEMORYPRESSURE_NORMAL

The iOS SDK compiler rejected this binding: 'DISPATCH_MEMORYPRESSURE_NORMAL' has been renamed to 'DispatchSource.MemoryPressureEvent.normal'

DISPATCH_MEMORYPRESSURE_WARN

The iOS SDK compiler rejected this binding: 'DISPATCH_MEMORYPRESSURE_WARN' has been renamed to 'DispatchSource.MemoryPressureEvent.warning'

DISPATCH_PROC_EXEC

The iOS SDK compiler rejected this binding: 'DISPATCH_PROC_EXEC' has been renamed to 'DispatchSource.ProcessEvent.exec'

DISPATCH_PROC_EXIT

The iOS SDK compiler rejected this binding: 'DISPATCH_PROC_EXIT' has been renamed to 'DispatchSource.ProcessEvent.exit'

DISPATCH_PROC_FORK

The iOS SDK compiler rejected this binding: 'DISPATCH_PROC_FORK' has been renamed to 'DispatchSource.ProcessEvent.fork'

DISPATCH_PROC_SIGNAL

The iOS SDK compiler rejected this binding: 'DISPATCH_PROC_SIGNAL' has been renamed to 'DispatchSource.ProcessEvent.signal'

DISPATCH_QUEUE_PRIORITY_BACKGROUND

The iOS SDK compiler rejected this binding: 'DISPATCH_QUEUE_PRIORITY_BACKGROUND' has been renamed to 'DispatchQueue.GlobalQueuePriority.background'

DISPATCH_QUEUE_PRIORITY_DEFAULT

The iOS SDK compiler rejected this binding: 'DISPATCH_QUEUE_PRIORITY_DEFAULT' has been renamed to 'DispatchQueue.GlobalQueuePriority.default'

DISPATCH_QUEUE_PRIORITY_HIGH

The iOS SDK compiler rejected this binding: 'DISPATCH_QUEUE_PRIORITY_HIGH' has been renamed to 'DispatchQueue.GlobalQueuePriority.high'

DISPATCH_QUEUE_PRIORITY_LOW

The iOS SDK compiler rejected this binding: 'DISPATCH_QUEUE_PRIORITY_LOW' has been renamed to 'DispatchQueue.GlobalQueuePriority.low'

DISPATCH_TIMER_STRICT

The iOS SDK compiler rejected this binding: 'DISPATCH_TIMER_STRICT' has been renamed to 'DispatchSource.TimerFlags.strict'

DISPATCH_TIME_FOREVER

The iOS SDK compiler rejected this binding: 'DISPATCH_TIME_FOREVER' has been renamed to 'DispatchTime.distantFuture'

DISPATCH_TIME_NOW

The iOS SDK compiler rejected this binding: 'DISPATCH_TIME_NOW' has been replaced by 'DispatchTime.now()'

DISPATCH_VNODE_ATTRIB

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_ATTRIB' has been renamed to 'DispatchSource.FileSystemEvent.attrib'

DISPATCH_VNODE_DELETE

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_DELETE' has been renamed to 'DispatchSource.FileSystemEvent.delete'

DISPATCH_VNODE_EXTEND

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_EXTEND' has been renamed to 'DispatchSource.FileSystemEvent.extend'

DISPATCH_VNODE_FUNLOCK

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_FUNLOCK' has been renamed to 'DispatchSource.FileSystemEvent.funlock'

DISPATCH_VNODE_LINK

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_LINK' has been renamed to 'DispatchSource.FileSystemEvent.link'

DISPATCH_VNODE_RENAME

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_RENAME' has been renamed to 'DispatchSource.FileSystemEvent.rename'

DISPATCH_VNODE_REVOKE

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_REVOKE' has been renamed to 'DispatchSource.FileSystemEvent.revoke'

DISPATCH_VNODE_WRITE

The iOS SDK compiler rejected this binding: 'DISPATCH_VNODE_WRITE' has been renamed to 'DispatchSource.FileSystemEvent.write'

DispatchData.enumerateBytes(block:)

The iOS SDK compiler rejected this binding: 'enumerateBytes(block:)' has been renamed to 'enumerateBytes(_:)'

DispatchTime

The iOS SDK compiler rejected this binding: initializer 'init(uptimeNanoseconds:)' has different argument labels from those required by protocol 'RawRepresentable' ('init(rawValue:)')

DispatchWallTime

The iOS SDK compiler rejected this binding: type 'DispatchWallTime' does not conform to protocol 'RawRepresentable'