Structure

DispatchSource.TimerFlags

Flags to use when configuring a timer dispatch source.

Declaration

struct TimerFlags

Topics

Timer Flags

static let strict: DispatchSource.TimerFlags

The system makes its best effort to observe the timer's specified leeway value, even if the value is smaller than the default leeway.

Initializers

init()

Creates an empty option set.

init(arrayLiteral: DispatchSource.TimerFlags...)

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

init<S>(S)

Creates a new set from a finite sequence of items.

Instance Properties

var isEmpty: Bool

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

Instance Methods

func contains(DispatchSource.TimerFlags) -> Bool

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

func formIntersection(DispatchSource.TimerFlags)

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

func formSymmetricDifference(DispatchSource.TimerFlags)

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(DispatchSource.TimerFlags)

Inserts the elements of another set into this option set.

func insert(DispatchSource.TimerFlags) -> (inserted: Bool, memberAfterInsert: DispatchSource.TimerFlags)

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

func intersection(DispatchSource.TimerFlags) -> DispatchSource.TimerFlags

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

func isDisjoint(with: DispatchSource.TimerFlags) -> Bool

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

func isStrictSubset(of: DispatchSource.TimerFlags) -> Bool

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

func isStrictSuperset(of: DispatchSource.TimerFlags) -> Bool

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

func isSubset(of: DispatchSource.TimerFlags) -> Bool

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

func isSuperset(of: DispatchSource.TimerFlags) -> Bool

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

func remove(DispatchSource.TimerFlags) -> DispatchSource.TimerFlags?

Removes the given element and all elements subsumed by it.

func subtract(DispatchSource.TimerFlags)

Removes the elements of the given set from this set.

func subtracting(DispatchSource.TimerFlags) -> DispatchSource.TimerFlags

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

func symmetricDifference(DispatchSource.TimerFlags) -> DispatchSource.TimerFlags

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

func union(DispatchSource.TimerFlags) -> DispatchSource.TimerFlags

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

Operator Functions

static func != (DispatchSource.TimerFlags, DispatchSource.TimerFlags) -> Bool

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

Relationships

See Also

Creating a Timer Source

protocol DispatchSourceTimer

A dispatch source that submits the event handler block based on a timer.