Liking cljdoc? Tell your friends :D

flog.context


agent-inherit-fncljmacro

(agent-inherit-fn & body)

A way to force ThreadContext inheritance onto worker threads within Clojure - i.e. Agents. Returns the function to send (1-arg).

A way to force ThreadContext inheritance onto worker threads
within Clojure - i.e. Agents. Returns the function to send (1-arg).
sourceraw docstring

executor-inherit-fncljmacro

(executor-inherit-fn & body)

A way to force ThreadContext inheritance onto worker threads outside clojure - i.e. Executors. Returns the function to submit (no-args).

A way to force ThreadContext inheritance onto worker threads
outside clojure - i.e. Executors. Returns the function to submit (no-args).
sourceraw docstring

inherit-fnclj

(inherit-fn f)

Wraps <f> so that the current thread's context is inherited before calling it. The assumption is that <f> will run on a different thread, but will want access to the current context.

Wraps <f> so that the current thread's context is inherited before calling it.
The assumption is that <f> will run on a different thread, but will want access
to the current context.
sourceraw docstring

manager-contextclj

(manager-context)
(manager-context current?)
source

with-contextcljmacro

(with-context mdc ndc & body)

Like with-mdc & with-ndc combined.

Like `with-mdc` & `with-ndc` combined.
sourceraw docstring

with-mdccljmacro

(with-mdc m & body)

Executes <body> after merging Map <m>, with the current MDC map. Restores it back before exiting its scope.

Executes <body> after merging Map <m>,
with the current MDC map. Restores it
back before exiting its scope.
sourceraw docstring

with-ndccljmacro

(with-ndc vs & body)

Executes <body> after pushing <vs>, in the current NDC stack. Pops them back out before exiting its scope.

Executes <body> after pushing <vs>,
in the current NDC stack. Pops them
back out before exiting its scope.
sourceraw docstring

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

× close