File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 23332333 value is available. See also - realized?."
23342334 {:added " 1.0"
23352335 :static true }
2336- ([ref] (if (instance? java.util.concurrent.Future ref)
2337- (deref-future ref)
2338- (. deref ^clojure.lang.IDeref ref)))
2336+ ([ref] (if (instance? clojure.lang.IDeref ref)
2337+ (. deref ^clojure.lang.IDeref ref)
2338+ (deref-future ref)))
23392339 ([ref timeout-ms timeout-val]
2340- (if (instance? java.util.concurrent.Future ref)
2341- (deref-future ref timeout-ms timeout-val)
2342- (. deref ^clojure.lang.IBlockingDeref ref timeout-ms timeout-val))))
2340+ (if (instance? clojure.lang.IBlockingDeref ref)
2341+ (. deref ^clojure.lang.IBlockingDeref ref timeout-ms timeout-val)
2342+ (deref-future ref timeout-ms timeout-val))))
23432343
23442344(defn atom
23452345 " Creates and returns an Atom with an initial value of x and zero or
You can’t perform that action at this time.
0 commit comments