Liking cljdoc? Tell your friends :D
Clojure only.

dar.async


<<clj

(<< promise)

Gets a val from promise. Must be called inside a (go ...) block. Will 'block' and wait for result if it is not available.

Gets a val from promise. Must be called inside a (go ...) block.
Will 'block' and wait for result if it is not available.
sourceraw docstring

<<!cljmacro

(<<! p)

Gets a value from promise. Will block until result is delivered.

Gets a value from promise. Will block until result is delivered.
sourceraw docstring

<?cljmacro

(<? p)

Like <<, but it will rethrow the result value if it is throwable.

Like <<, but it will rethrow the result value if it is throwable.
sourceraw docstring

<?!cljmacro

(<?! p)
source

gocljmacro

(go & body)

Executes the body synchronously (like a (do ...) block) until it hits the first async point (call to either << or <?). If the result is immediately available it continues running in the current thread. Otherwise the execution will be paused and resumed on a thread that delivered result.

Executes the body synchronously (like a (do ...) block) until it
hits the first async point (call to either << or <?).
If the result is immediately available it continues running
in the current thread. Otherwise the execution will be paused and
resumed on a thread that delivered result.
sourceraw docstring

go*cljmacro

(go* & body)
source

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

× close