DispatchQueue

class DispatchQueue : DispatchObject
  • Mechanica

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

    Declaration

    Swift

    public 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.