Dispatcher
open class Dispatcher
Dispatcher
-
Main queue dispatcher
Declaration
Swift
public static var main: Dispatcher { get }
-
Current queue dispatcher
Declaration
Swift
public static var current: Dispatcher { get }
-
Dispatcher with default quality of service
Declaration
Swift
public static var `default`: Dispatcher { get }
-
Dispatcher with user interactive quality of service
Declaration
Swift
public static var userInteractive: Dispatcher { get }
-
Dispatcher with user initiated quality of service
Declaration
Swift
public static var userInitiated: Dispatcher { get }
-
Dispatcher with utility quality of service
Declaration
Swift
public static var utility: Dispatcher { get }
-
Dispatcher with background quality of service
Declaration
Swift
public static var background: Dispatcher { get }
-
Dispatcher instance with custom OperationQueue
Declaration
Swift
public init(name: String = UUID().uuidString, qos: QualityOfService = .default, maxConcurrentOperations: Int = OperationQueue.defaultMaxConcurrentOperationCount)
-
Execute Operation instance in OperationQueue
Declaration
Swift
open func execute(_ operation: Operation)
-
Execute [Operation] instance collection in OperationQueue
Declaration
Swift
open func execute(_ operations: [Operation], waitUntilFinished: Bool = false)
-
Execute closure in OperationQueue
Declaration
Swift
@discardableResult open func execute(_ closure: @escaping () -> Void) -> Operation
-
Execute [closure] collection in OperationQueue concurrently or sequentially
Declaration
Swift
@discardableResult open func execute(_ closures: [() -> Void], concurrent: Bool = true, waitUntilFinished: Bool = false) -> [Operation]
-
Execute closure in DispatchQueue after delay
Declaration
Swift
open func execute(after delay: DispatchTimeInterval, closure: @escaping () -> Void)
-
Execute DispatchWorkItem instance in DispatchQueue after delay
Declaration
Swift
open func execute(after delay: DispatchTimeInterval, work: DispatchWorkItem)
-
Execute DispatchWorkItem instance in DispatchQueue
Declaration
Swift
open func execute(_ work: DispatchWorkItem)