Skip to main content

Refs

10
  • alter

    Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref ar...

  • commute

    Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref ar...

  • dosync

    Runs the exprs (in an implicit do) in a transaction that encompasses exprs and any nested calls. Starts a transaction...

  • ensure

    Must be called in a transaction. Protects the ref from modification by other transactions. Returns the in-transaction...

  • ref

    Creates and returns a Ref with an initial value of x and zero or more options (in any order): :meta metadata-map ...

  • ref-history-count

    Returns the history count of a ref

  • ref-max-history

    Gets the max-history of a ref, or sets it and returns the ref

  • ref-min-history

    Gets the min-history of a ref, or sets it and returns the ref

  • ref-set

    Must be called in a transaction. Sets the value of ref. Returns val.

  • sync

    transaction-flags => TBD, pass nil for now Runs the exprs (in an implicit do) in a transaction that encompasses exp...