0

I am wondering why I can't get this example from the documentation of PromiseKit running: http://promisekit.org/when/

I have found out that .catch has been renamed to .error, and .finally has been renamed to .always, but what about "when"?

Or am I doing anything completely wrong? The documentation of PromiseKit is not very explanatory.

enter image description here

Christian Anton
  • 357
  • 1
  • 4
  • 13

1 Answers1

0

Stupid me. I had not imported PromiseKit in this file. I didn't notice because the .then{} syntax was working. The .then doesn't need PromiseKit to be imported.

Christian Anton
  • 357
  • 1
  • 4
  • 13