Skip to content

Commit 060d64b

Browse files
committed
Update to PMK6
1 parent 25c9651 commit 060d64b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "mxcl/PromiseKit" ~> 5.0
1+
github "mxcl/PromiseKit" ~> 6.0

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "mxcl/PromiseKit" "5.0.3"
1+
github "mxcl/PromiseKit" "6.0.0"

Sources/CLGeocoder+Promise.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@ import PromiseKit
1616
extension CLGeocoder {
1717
/// Submits a reverse-geocoding request for the specified location.
1818
public func reverseGeocode(location: CLLocation) -> Promise<[CLPlacemark]> {
19-
return Promise(.pending) { seal in
19+
return Promise { seal in
2020
reverseGeocodeLocation(location, completionHandler: seal.resolve)
2121
}
2222
}
2323

2424
/// Submits a forward-geocoding request using the specified address dictionary.
2525
public func geocode(_ addressDictionary: [String: String]) -> Promise<[CLPlacemark]> {
26-
return Promise(.pending) { seal in
26+
return Promise { seal in
2727
geocodeAddressDictionary(addressDictionary, completionHandler: seal.resolve)
2828
}
2929
}
3030

3131
/// Submits a forward-geocoding request using the specified address string.
3232
public func geocode(_ addressString: String) -> Promise<[CLPlacemark]> {
33-
return Promise(.pending) { seal in
33+
return Promise { seal in
3434
geocodeAddressString(addressString, completionHandler: seal.resolve)
3535
}
3636
}
3737

3838
/// Submits a forward-geocoding request using the specified address string within the specified region.
3939
public func geocode(_ addressString: String, region: CLRegion?) -> Promise<[CLPlacemark]> {
40-
return Promise(.pending) { seal in
40+
return Promise { seal in
4141
geocodeAddressString(addressString, in: region, completionHandler: seal.resolve)
4242
}
4343
}

0 commit comments

Comments
 (0)