(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).
(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).
(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.
(with-context mdc ndc & body)Like with-mdc & with-ndc combined.
Like `with-mdc` & `with-ndc` combined.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |