(<?? ch)
Like <!! but throws errors. Only works for Java platform - no JavaScript.
Like <!! but throws errors. Only works for Java platform - no JavaScript.
(channel? x)
Returns true if core async channel.
Returns true if core async channel.
(cljs-env? env)
Take the &env from a macro, and tell whether we are expanding into cljs.
Take the &env from a macro, and tell whether we are expanding into cljs.
(go-try & body)
Like go but catches the first thrown error and returns it.
Like go but catches the first thrown error and returns it.
(if-cljs then else)
Return then if we are generating cljs code and else for Clojure code. https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ
Return then if we are generating cljs code and else for Clojure code. https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ
(into? coll chan)
Like async/into, but checks each item for an error response and returns exception onto the response channel insted of results if thee is one.
Like async/into, but checks each item for an error response and returns exception onto the response channel insted of results if thee is one.
(merge-into? coll chs)
Takes a sequence of single-value chans and returns the conjoined into collection. Realizes entire channel sequence first, and if an error value exists returns just the exception.
Takes a sequence of single-value chans and returns the conjoined into collection. Realizes entire channel sequence first, and if an error value exists returns just the exception.
(throw-err e)
(throw-if-exception x)
Helper method that checks if x is Exception and if yes, wraps it in a new exception, passing though ex-data if any, and throws it. The wrapping is done to maintain a full stack trace when jumping between multiple contexts.
Helper method that checks if x is Exception and if yes, wraps it in a new exception, passing though ex-data if any, and throws it. The wrapping is done to maintain a full stack trace when jumping between multiple contexts.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close