lantiga / ki

lisp + mori, sweet.js

Home Page:ki-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Promises

roman01la opened this issue · comments

Does ki handles promises?

I've tried to play around with Fetch API, fetch function does return promise, but I can't figure out what is the proper syntax for .then().catch() in ki.

http://ki-lang.org/api.html#chain should work in your case

(chain an_obj_or_a_form_returning_one (then arg) (catch arg))

Let me know if this is not the case.