DispatchQueue

public extension DispatchQueue
  • SwifterSwift: A Boolean value indicating whether the current dispatch queue is the main queue.

    Declaration

    Swift

    static var isMainQueue: Bool { get }

Methods

  • SwifterSwift: Returns a Boolean value indicating whether the current dispatch queue is the specified queue.

    Declaration

    Swift

    static func isCurrent(_ queue: DispatchQueue) -> Bool

    Parameters

    queue

    The queue to compare against.

    Return Value

    true if the current queue is the specified queue, otherwise false.