Volatile

typesince v0.0-2496 clojure.lang/VolatileEdit
satisfies IDeref IPrintWithWriter IVolatile

(Volatile. state)

See Also:


Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(deftype Volatile [^:mutable state]
  IVolatile
  (-vreset! [_ new-state]
    (set! state new-state))

  IDeref
  (-deref [_] state))