File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- github "mxcl/PromiseKit" ~> 5 .0
1
+ github "mxcl/PromiseKit" ~> 6 .0
Original file line number Diff line number Diff line change 1
- github "mxcl/PromiseKit" "5 .0.3 "
1
+ github "mxcl/PromiseKit" "6 .0.0 "
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ import PromiseKit
16
16
extension MKDirections {
17
17
/// Begins calculating the requested route information asynchronously.
18
18
public func calculate( ) -> Promise < MKDirectionsResponse > {
19
- return Promise ( . pending ) { calculate ( completionHandler: $0. resolve) }
19
+ return Promise { calculate ( completionHandler: $0. resolve) }
20
20
}
21
21
22
22
/// Begins calculating the requested travel-time information asynchronously.
23
23
public func calculateETA( ) -> Promise < MKETAResponse > {
24
- return Promise ( . pending ) { calculateETA ( completionHandler: $0. resolve) }
24
+ return Promise { calculateETA ( completionHandler: $0. resolve) }
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ import PromiseKit
16
16
extension MKMapSnapshotter {
17
17
/// Starts generating the snapshot using the options set in this object.
18
18
public func start( ) -> Promise < MKMapSnapshot > {
19
- return Promise ( . pending ) { start ( completionHandler: $0. resolve) }
19
+ return Promise { start ( completionHandler: $0. resolve) }
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments