ClojureDocs

导航

命名空间

ensure

clojure.core

1.0 开始提供 ()
  • (ensure ref)
Must be called in a transaction. Protects the ref from modification
by other transactions.  Returns the in-transaction-value of
ref. Allows for more concurrency than (ref-set ref @ref)