Liking cljdoc? Tell your friends :D

check.async-old


async-testclj/smacro

(async-test description & cmds)

Defines an async test. On Clojure, wraps all execution over a go-block. On ClojureScript, wraps execution on a go-block and also sets the async option. If the first argument of cmds is a map, it'll accept the following keys:

:teardown - a sequence of commands that will tear down after the execution of every async test, both on success or on failure :timeout - the time that the async test will wait before timing out

Defines an async test. On Clojure, wraps all execution over a go-block.
On ClojureScript, wraps execution on a go-block and also sets the `async`
option. If the first argument of `cmds` is a map, it'll accept the following
keys:

:teardown - a sequence of commands that will tear down after the execution
of every async test, both on success or on failure
:timeout - the time that the async test will wait before timing out
raw docstring

await!clj/smacro

(await! chan)

await-all!clj/smacro

(await-all! chans)

get-from-channel!clj/s

(get-from-channel! cljs? chan)

promise-testclj/smacro

(promise-test description & cmds)

promise-test*cljs

(promise-test* prom done tear time)

timeoutclj/s

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

× close