From ce522955550d7eb359e5213a17ccb3b2719758be Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Fri, 1 Dec 2017 14:52:37 +0100 Subject: [PATCH] Discardable result --- MapboxGeocoder/MBGeocoder.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MapboxGeocoder/MBGeocoder.swift b/MapboxGeocoder/MBGeocoder.swift index 64e4624..911d67f 100644 --- a/MapboxGeocoder/MBGeocoder.swift +++ b/MapboxGeocoder/MBGeocoder.swift @@ -206,6 +206,7 @@ open class Geocoder: NSObject { - parameter completionHandler: The closure (block) to call with the resulting placemarks. This closure is executed on the application’s main thread. - returns: The data task used to perform the HTTP request. If, while waiting for the completion handler to execute, you no longer want the resulting placemarks, cancel this task. */ + @discardableResult open func batchGeocode(_ options: T, completionHandler: @escaping BatchCompletionHandler) -> URLSessionDataTask where T: BatchGeocodeOptions { let url = urlForGeocoding(options)