Liking cljdoc? Tell your friends :D

advenjure.async


<!?clj/smacro

(<!? value)

If value is a channel (implements ReadPort protocol), take the value from it (<!), otherwise return as is. Works with nested channels, I wish there wasn't any.

If value is a channel (implements ReadPort protocol), take the value from it
(<!), otherwise return as is. Works with nested channels, I wish there wasn't any.
source (clj)source (cljs)raw docstring

aletclj/s≠macro

clj
(alet bindings & exprs)
cljs
(alet &form &env bindings & exprs)

Repace with (go (let!? ...)) in cljs and with let in clj.

Repace with (go (let!? ...)) in cljs and with let in clj.
source (clj)source (cljs)raw docstring

aloopclj/s≠macro

clj
(aloop & expr)
cljs
(aloop &form &env & expr)

replace with go-loop in cljs and with loop in clj.

replace with go-loop in cljs and with loop in clj.
source (clj)source (cljs)raw docstring

async-bindingsclj/s

(async-bindings bindings)
source

cljs-env?clj/s

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

if-cljsclj/smacro

(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
source (clj)source (cljs)raw docstring

let!?clj/s≠macro

clj
(let!? bindings & exprs)
cljs
(let!? &form &env bindings & exprs)

In cljs, enclose every binded value in a (<!?) expression.

In cljs, enclose every binded value in a (<!?) expression.
source (clj)source (cljs)raw docstring

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

× close