Kommander
open class Kommander
Kommander manager
-
Kommander instance with CurrentDispatcher deliverer and MainDispatcher executor
Declaration
Swift
public static var main: Kommander { get }
-
Kommander instance with CurrentDispatcher deliverer and CurrentDispatcher executor
Declaration
Swift
public static var current: Kommander { get }
-
Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with default quality of service
Declaration
Swift
public static var `default`: Kommander { get }
-
Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with user interactive quality of service
Declaration
Swift
public static var userInteractive: Kommander { get }
-
Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with user initiated quality of service
Declaration
Swift
public static var userInitiated: Kommander { get }
-
Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with utility quality of service
Declaration
Swift
public static var utility: Kommander { get }
-
Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with background quality of service
Declaration
Swift
public static var background: Kommander { get }
-
Kommander instance with deliverer and executor
Declaration
Swift
public init(deliverer: Dispatcher = .current, executor: Dispatcher = .default)
-
Kommander instance with deliverer and custom OperationQueue executor
Declaration
Swift
public init(deliverer: Dispatcher = .current, name: String = UUID().uuidString, qos: QualityOfService = .default, maxConcurrentOperations: Int = OperationQueue.defaultMaxConcurrentOperationCount)
-
Build Kommand
instance with an actionClosure returning generic and throwing errors Declaration
Swift
open func make<Result>(_ actionClosure: @escaping () throws -> Result) -> Kommand<Result>
-
Build [Kommand
] instances collection with actionClosures returning generic and throwing errors Declaration
Swift
open func make<Result>(_ actionClosures: [() throws -> Result]) -> [Kommand<Result>]
-
Execute [Kommand
] instances collection concurrently or sequentially after delay Declaration
Swift
open func execute<Result>(_ kommands: [Kommand<Result>], concurrent: Bool = true, waitUntilFinished: Bool = false, after delay: DispatchTimeInterval)
-
Execute [Kommand
] instances collection concurrently or sequentially Declaration
Swift
open func execute<Result>(_ kommands: [Kommand<Result>], concurrent: Bool = true, waitUntilFinished: Bool = false)
-
Cancel [Kommand
] instances collection after delay Declaration
Swift
open func cancel<Result>(_ kommands: [Kommand<Result>], throwingError: Bool = false, after delay: DispatchTimeInterval)
-
Cancel [Kommand
] instances collection Declaration
Swift
open func cancel<Result>(_ kommands: [Kommand<Result>], throwingError: Bool = false)
-
Retry [Kommand
] instances collection after delay Declaration
Swift
open func retry<Result>(_ kommands: [Kommand<Result>], after delay: DispatchTimeInterval)
-
Retry [Kommand
] instances collection Declaration
Swift
open func retry<Result>(_ kommands: [Kommand<Result>])