volatile!

added
1.7

ns
clojure.core

type
function

(volatile! val)

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

                (def val (volatile! 0))

@val
;;=> 0

(vswap! val inc)
;;=> 1

(vreset! val "nothing")
;;=> "nothing"

@val
;;=> "nothing"