(<< 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.
(<<! p)
Gets a value from promise. Will block until result is delivered.
Gets a value from promise. Will block until result is delivered.
(<? 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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close