About

Hi! I’m Valentin, an iOS developer who spent the last 12 months remote working while traveling in Dubai, India, South-East Asia and Australia, until Covid-19 caused planes to ground, hotels to shut, people to avoid contact and quarantine all around 😑

func fetchResults(with type: CRMCoreDataFetchOperation.ResultsType, fetchCompletion: @escaping (([[String: Any]]) -> Void)) {
            fetchResultsWithSearchTerms(searchTerms, resultsType: type) { [weak self] (response) in
                guard let self = self else { return }
                switch response {
                case .success(let results):
                    fetchCompletion(results)
                    
                default:
                    isCancelled = true
                    self.operationQueue.cancelAllOperations()
                }
            }
        }

Leave a Comment

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami