Skip to main content

Atoms

6
  • atom

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

  • compare-and-set!

    Atomically sets the value of atom to newval if and only if the current value of the atom is identical to oldval. Retur...

  • reset!

    Sets the value of atom to newval without regard for the current value. Returns newval.

  • reset-vals!

    Sets the value of atom to newval. Returns [old new], the value of the atom before and after the reset.

  • swap!

    Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple t...

  • swap-vals!

    Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple t...