Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Why not ajax-request return the result of handler? #36

Closed
weejulius opened this Issue · 1 comment

2 participants

@weejulius

just a suggestion.

Thanks for your cljs-ajax

@JulianBirch
Owner

Another multi-level answer. First: that would be a synchronous operation, and Javascript doesn't have them. Second, what we actually return is the running request, on which you can call abort if you no longer need the result. (This isn't documented, but is useful.)

At the highest level, this is only really possible using core,async. You can do it yourself relatively easily, but designing "the right" API in general is taking time. You can follow the progress on issue #6. (Terrifying how small the number is.)

@weejulius weejulius closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.