Structure

DispatchQueue.Attributes

No overview available.

Topics

Initializers

init()

Creates an empty option set.

init<S>(S)

Creates a new set from a finite sequence of items.

init(arrayLiteral: DispatchQueue.Attributes...)

Creates a set containing the elements of the given array literal.

Instance Properties

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.

Instance Methods

func contains(DispatchQueue.Attributes)

Returns a Boolean value that indicates whether a given element is a member of the option set.

func formIntersection(DispatchQueue.Attributes)

Removes all elements of this option set that are not also present in the given set.

func formSymmetricDifference(DispatchQueue.Attributes)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

func formUnion(DispatchQueue.Attributes)

Inserts the elements of another set into this option set.

func insert(DispatchQueue.Attributes)

Adds the given element to the option set if it is not already a member.

func intersection(DispatchQueue.Attributes)

Returns a new option set with only the elements contained in both this set and the given set.

func isDisjoint(with: DispatchQueue.Attributes)

Returns a Boolean value that indicates whether the set has no members in common with the given set.

func isStrictSubset(of: DispatchQueue.Attributes)

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isStrictSuperset(of: DispatchQueue.Attributes)

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isSubset(of: DispatchQueue.Attributes)

Returns a Boolean value that indicates whether the set is a subset of another set.

func isSuperset(of: DispatchQueue.Attributes)

Returns a Boolean value that indicates whether the set is a superset of the given set.

func remove(DispatchQueue.Attributes)

Removes the given element and all elements subsumed by it.

func subtract(DispatchQueue.Attributes)

Removes the elements of the given set from this set.

func subtracting(DispatchQueue.Attributes)

Returns a new set containing the elements of this set that do not occur in the given set.

func symmetricDifference(DispatchQueue.Attributes)

Returns a new option set with the elements contained in this set or in the given set, but not in both.

func union(DispatchQueue.Attributes)

Returns a new option set of the elements contained in this set, in the given set, or in both.

func update(with: DispatchQueue.Attributes)

Inserts the given element into the set.

Operator Functions

static func !=(DispatchQueue.Attributes, DispatchQueue.Attributes)

Returns a Boolean value indicating whether two values are not equal.

Relationships

Conforms To

See Also

Managing Dispatch Queues

class DispatchQueue

DispatchQueue manages the execution of work items. Each work item submitted to a queue is processed on a pool of threads managed by the system.

class DispatchSpecificKey

DispatchSpecificKey is a class that encapsulates keys that can be associated with a contextual value on a DispatchQueue using the setSpecific<T>(key:value:) method, and accessed using the getSpecific<T>(key:) method.

func dispatch_get_current_queue()

Returns the queue on which the currently executing block is running.

Deprecated
func setTarget(queue: DispatchQueue?)

Sets the target queue for the given object.

func dispatchMain()

Executes blocks submitted to the main queue.