CallbackOperation
open class CallbackOperation<T> : GenericOperation<T>
Async GenericOperation that can be initialized with callback
-
Task type
Declaration
Swift
public typealias Task = (CallbackOperation<T>, @escaping (T?, Error?) -> Void) -> Void
-
Task to execute
Declaration
Swift
public let task: Task
-
Initializer
Declaration
Swift
public init(task: @escaping Task)
Parameters
task
task to execute
-
Main function
Declaration
Swift
override open func main()