Skip to content

Commit

Permalink
Fix the playground (been broken a while now!)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jun 4, 2018
1 parent e2d8a05 commit be56acd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PromiseKit.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ func promise3() -> Promise<Int> {
}

firstly {
Promise(value: 1)
Promise.value(1)
}.map { _ in
2
}.then { _ in
promise3()
}.done {
print($0) // => 3
}.ensure {
PlaygroundPage.current.finishExecution()
}.catch { error in
// only happens for errors
}.finally {
PlaygroundPage.current.finishExecution()
}

PlaygroundPage.current.needsIndefiniteExecution = true

0 comments on commit be56acd

Please sign in to comment.