Liking cljdoc? Tell your friends :D

sci.async


awaitcljs

(await promise)

Mark promise to be flatteded into top level async evaluation, similar to top level await.

Mark promise to be flatteded into top level async evaluation, similar
to top level await.
sourceraw docstring

await?cljs

(await? promise)

Check if promise was marked with await.

Check if promise was marked with `await`.
sourceraw docstring

eval-formcljs

(eval-form ctx form)

Eval single form in ctx.

Eval single form in ctx.
sourceraw docstring

eval-form+cljs

(eval-form+ ctx s)
(eval-form+ ctx form opts)

Eval single form in ctx, return map of :val and :ns.

Eval single form in ctx, return map of `:val` and `:ns`.
sourceraw docstring

eval-string*cljs

(eval-string* ctx s)
source

eval-string+cljs

(eval-string+ ctx s)
(eval-string+ ctx s opts)

Same as eval-string* but returns map with :val, the evaluation result, and :ns, the last active namespace. The return value can be passed back into opts to preserve the namespace state.

Same as eval-string* but returns map with `:val`, the evaluation
result, and `:ns`, the last active namespace. The return value can
be passed back into `opts` to preserve the namespace state.
sourceraw docstring

requirecljs

Async require that can be substituted for sync require by {:namespaces {'clojure.core {'require scia/require}}}

Async require that can be substituted for sync require by
`{:namespaces {'clojure.core {'require scia/require}}}`
sourceraw docstring

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

× close