DEPRECATED: please use com.wsscode.async.async-cljs instead
DEPRECATED: please use com.wsscode.async.async-cljs instead
(<?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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close