DEPRECATED: please use com.wsscode.async.async-cljs instead
DEPRECATED: please use com.wsscode.async.async-cljs instead
(<!maybe x)
(<!p promise)
(<? ch)
(<?maybe x)
Tries to await for a value, first if checks if x is a channel, if so will read on it; then it checks if it's a JS promise, if so will convert it to a channel and read from it. Otherwise returns x as is.
Tries to await for a value, first if checks if x is a channel, if so will read on it; then it checks if it's a JS promise, if so will convert it to a channel and read from it. Otherwise returns x as is.
(chan? c)
(consumer-pair resp)
(error? err)
(go-catch & body)
(go-promise & body)
(if-cljs then else)
(let-chan [name value] & body)
Handles a possible channel on value.
Handles a possible channel on value.
(let-chan* [name value] & body)
Like let-chan, but async errors will be returned instead of propagated
Like let-chan, but async errors will be returned instead of propagated
(promise->chan p)
(promise? x)
(throw-err x)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close