Skip to content

Commit 6c9c9d0

Browse files
committed
'Cancel' for PromiseKit --
* update extensions to point at the latest version of PromiseKit in the pull request * fix "generic parameter 'T' could not be inferred" compilation errors when using the new 'Promise' initializer that takes a cancellable task
1 parent 194f051 commit 6c9c9d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
github "AliSoftware/OHHTTPStubs" "6.1.0"
2-
github "dougzilla32/PromiseKit" "5069bdc1b10847d47f5fdbe3accb623b3b1908a3"
2+
github "dougzilla32/PromiseKit" "dcf77e0afe55e3d18da9a2a5bda28cdf1adcb5a9"

Sources/Process+Promise.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extension Process {
6767
}
6868
}
6969

70-
return Promise(cancellableTask: self) { seal in
70+
return Promise<(out: Pipe, err: Pipe)>(cancellableTask: self) { seal in
7171
q.async {
7272
self.waitUntilExit()
7373

0 commit comments

Comments
 (0)