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

Method reset

src/jvm/clojure/lang/MultiFn.java:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46public MultiFn reset(){
47 rw.writeLock().lock();
48 try{
49 methodTable = methodCache = preferTable = PersistentHashMap.EMPTY;
50 cachedHierarchy = null;
51 return this;
52 }
53 finally {
54 rw.writeLock().unlock();
55 }
56}
57
58public MultiFn addMethod(Object dispatchVal, IFn method) {
59 rw.writeLock().lock();

Callers

nothing calls this directly

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected