MCPcopy Index your code
hub / github.com/clojure/clojure / reset

Method reset

src/jvm/clojure/lang/Atom.java:153–159  ·  view source on GitHub ↗
(Object newval)

Source from the content-addressed store, hash-verified

151}
152
153public Object reset(Object newval){
154 Object oldval = state.get();
155 validate(newval);
156 state.set(newval);
157 notifyWatches(oldval, newval);
158 return newval;
159}
160
161public IPersistentVector resetVals(Object newv){
162 validate(newv);

Callers

nothing calls this directly

Calls 4

validateMethod · 0.80
notifyWatchesMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected