OperationUtils
public enum OperationUtils
Class that helps to create Operation instances for common cases
-
Creates empty async operation
Declaration
Swift
public static func makeEmptyOperation() -> GenericOperation<Void>
Return Value
GenericOperation
-
Creates completion operation that finds result and passes it to completion callback
Declaration
Swift
public static func makeCompletionOperation<T>( completion: @escaping (T?, Error?) -> Void) -> GenericOperation<Void>
Parameters
completion
completion callback to be called after finding result
Return Value
GenericOperation