Skip to content

Commit 8766058

Browse files
committed
Update to PMK6
1 parent d6f37a4 commit 8766058

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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/MKDirections+Promise.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import PromiseKit
1616
extension MKDirections {
1717
/// Begins calculating the requested route information asynchronously.
1818
public func calculate() -> Promise<MKDirectionsResponse> {
19-
return Promise(.pending) { calculate(completionHandler: $0.resolve) }
19+
return Promise { calculate(completionHandler: $0.resolve) }
2020
}
2121

2222
/// Begins calculating the requested travel-time information asynchronously.
2323
public func calculateETA() -> Promise<MKETAResponse> {
24-
return Promise(.pending) { calculateETA(completionHandler: $0.resolve) }
24+
return Promise { calculateETA(completionHandler: $0.resolve) }
2525
}
2626
}

Sources/MKMapSnapshotter+Promise.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ import PromiseKit
1616
extension MKMapSnapshotter {
1717
/// Starts generating the snapshot using the options set in this object.
1818
public func start() -> Promise<MKMapSnapshot> {
19-
return Promise(.pending) { start(completionHandler: $0.resolve) }
19+
return Promise { start(completionHandler: $0.resolve) }
2020
}
2121
}

0 commit comments

Comments
 (0)