Fix the playground (been broken a while now!)

This commit is contained in:
Max Howell 2018-06-04 19:11:13 -04:00
parent e2d8a05dab
commit be56acdce9

View File

@ -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