Liking cljdoc? Tell your friends :D

district.shared.async-helpers


<?clj/smacro

(<? expr)

Expects expr to be a channel or ReadPort which produces a value or js/Error, and returns values and throws errors

Expects `expr` to be a channel or ReadPort which produces a value or
js/Error, and returns values and throws errors
sourceraw docstring

deferclj/smacro

(defer & body)
source

extend-promises-as-channels!cljs

(extend-promises-as-channels!)
source

promise->clj/smacro

(promise-> promise & body)

Takes thenable functions as arguments (i.e. functions returning a JS/Promise) and chains them, taking care of error handling Example: (promise-> (thenable-1) (thenable-2))

Takes `thenable` functions as arguments (i.e. functions returning a JS/Promise) and chains them,
taking care of error handling
Example:
(promise-> (thenable-1)
           (thenable-2))
sourceraw docstring

promise->chancljs

(promise->chan js-promise)
source

promise?cljs

(promise? x)
source

resolve!cljs

(resolve! p value)
source

safe-goclj/smacro

(safe-go & body)
source

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

× close