Skip to content

Commit be56acd

Browse files
committedJun 4, 2018
Fix the playground (been broken a while now!)
1 parent e2d8a05 commit be56acd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎PromiseKit.playground/Contents.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ func promise3() -> Promise<Int> {
1111
}
1212

1313
firstly {
14-
Promise(value: 1)
14+
Promise.value(1)
1515
}.map { _ in
1616
2
1717
}.then { _ in
1818
promise3()
1919
}.done {
2020
print($0) // => 3
21-
}.ensure {
22-
PlaygroundPage.current.finishExecution()
2321
}.catch { error in
2422
// only happens for errors
23+
}.finally {
24+
PlaygroundPage.current.finishExecution()
2525
}
2626

2727
PlaygroundPage.current.needsIndefiniteExecution = true

0 commit comments

Comments
 (0)