ClojureDocs

Nav

Namespaces

push-thread-bindings

clojure.core

Available since 1.1 (source)
  • (push-thread-bindings bindings)
WARNING: This is a low-level function. Prefer high-level macros like
binding where ever possible.
 Takes a map of Var/value pairs. Binds each Var to the associated value for
the current thread. Each call *MUST* be accompanied by a matching call to
pop-thread-bindings wrapped in a try-finally!

    (push-thread-bindings bindings)
    (try
      ...
      (finally
        (pop-thread-bindings)))
0 Examples
No examples for clojure.core/push-thread-bindings.
See Also

Pop one set of bindings pushed with push-binding before. It is an error to pop bindings without pu...

Added by alilee

binding => var-symbol init-expr Creates new bindings for the (already-existing) vars, with the ...

Added by alilee

Takes a map of Var/value pairs. Installs for the given Vars the associated values as thread-local ...

Added by alilee
0 Notes
No notes for push-thread-bindings