Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promises #26

Open
roman01la opened this issue Apr 3, 2015 · 1 comment
Open

Promises #26

roman01la opened this issue Apr 3, 2015 · 1 comment

Comments

@roman01la
Copy link

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.

@lantiga
Copy link
Owner

lantiga commented Apr 5, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants