You're viewing version 1.2.0 of thread-bound?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

thread-bound?

clojure.core

  • (thread-bound? & vars)
Returns true if all of the vars provided as arguments have thread-local bindings.
Implies that set!'ing the provided vars will succeed. Returns true if no vars are provided.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:4360 top

(defn thread-bound?
  "Returns true if all of the vars provided as arguments have thread-local bindings.
   Implies that set!'ing the provided vars will succeed.  Returns true if no vars are provided."
  {:added "1.2"}
  [& vars]
  (every? #(.getThreadBinding ^clojure.lang.Var %) vars))
Vars in clojure.core/thread-bound?: defn every?
Used in 0 other vars

Comments top

No comments for thread-bound?. Log in to add a comment.