Queue

public final class Queue : OperationQueue

Use this class to create custom queues.

Static properties

  • The default queue of TermiNetwork used in all Request objects.

    Declaration

    Swift

    public static var shared: Queue

Hooks

Initializers

  • Initializes a new queue.

    Declaration

    Swift

    public init(failureMode: QueueFailureMode = .continue)

    Parameters

    failureMode

    Supported values are .continue (continues the execution of queue even if a request fails, this is the default) and .cancelAll (cancels all the remaining requests in queue)

Public methods

  • Adds a Request instance into queue.

    Declaration

    Swift

    override public func addOperation(_ operation: Foundation.Operation)

    Parameters

    failureMode

    Supported values are .continue (continues the execution of queue even if a request fails, this is the default) and .cancelAll (cancels all the remaining requests in queue)