Liking cljdoc? Tell your friends :D

hitchhiker.tree.utils.async


*async?*clj/s

source

<?clj/smacro

(<? ch)

Same as core.async <! but throws an exception if the channel returns a throwable error.

Same as core.async <! but throws an exception if the channel returns a
throwable error.
sourceraw docstring

<??cljmacro

(<?? ch)

Same as core.async <!! but throws an exception if the channel returns a throwable error.

Same as core.async <!! but throws an exception if the channel returns a
throwable error.
sourceraw docstring

chan-seqclj

(chan-seq ch)
source

go-tryclj/smacro

(go-try & body)

Asynchronously executes the body in a go block. Returns a channel which will receive the result of the body when completed or the exception if an exception is thrown. You are responsible to take this exception and deal with it! This means you need to take the result from the channel at some point.

Asynchronously executes the body in a go block. Returns a channel
which will receive the result of the body when completed or the
exception if an exception is thrown. You are responsible to take
this exception and deal with it! This means you need to take the
result from the channel at some point.
sourceraw docstring

if-async?clj/smacro

(if-async? then else)
sourceraw docstring

promise-chanclj/s

(promise-chan x)
source

reduce<clj/s

(reduce< go-f init s)

Reduces over a sequence s with a go function go-f given the initial value init.

Reduces over a sequence s with a go function go-f given the initial value
init.
sourceraw docstring

throw-if-exceptionclj/s

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close