Liking cljdoc? Tell your friends :D

promesa.async

core.async like facilities for dealing with asynchronous callback hell with promises (experimental).

core.async like facilities for dealing with asynchronous
callback hell with promises (experimental).
raw docstring

asynccljmacro

(async & body)

Asynchronously executes the body, returning immediately to the calling thread. Additionally, any visible calls to await on promise operations within the body will block (if necessary) by 'parking' the calling thread rather than tying up an OS thread (or the only JS thread when in ClojureScript). Upon completion of the operation, the body will be resumed.

Returns a promise which will be resolved with the result of the body when completed.

Asynchronously executes the body, returning immediately to the
calling thread. Additionally, any visible calls to `await` on
promise operations within the body will block (if necessary) by
'parking' the calling thread rather than tying up an OS thread (or
the only JS thread when in ClojureScript). Upon completion of the
operation, the body will be resumed.

Returns a promise which will be resolved with the result of the
body when completed.
raw docstring

async-terminatorsclj


do-returnclj

(do-return state value)

do-takeclj

(do-take state blk p)

run-state-machine-wrappedclj

(run-state-machine-wrapped state)

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

× close