Permalink
Browse files

Fix the playground (been broken a while now!)

  • Loading branch information...
mxcl committed Jun 4, 2018
1 parent e2d8a05 commit be56acdce99d4be49e53fbeb4badd1e016a5672c
Showing with 3 additions and 3 deletions.
  1. +3 −3 PromiseKit.playground/Contents.swift
@@ -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.