ClojureDocs

Nav

Namespaces

volatile?

clojure.core

Available since 1.7 (source)
  • (volatile? x)
Returns true if x is a volatile.
1 Example
(def a (volatile! 0))

user=> (volatile? a)
;;=> true

(def b 0)

user=> (volatile? b)
;;=> false
See Also

Creates and returns a Volatile with an initial value of val.

Added by claj

Non-atomically swaps the value of the volatile as if: (apply f current-value-of-vol args). Return...

Added by didibus

Sets the value of volatile to newval without regard for the current value. Returns newval.

Added by didibus
0 Notes
No notes for volatile?