Skip to main content

Concurrency

  • atom

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

  • compare-and-set!

    Atomically sets the value of atom to newval if and only if the current value of the atom is equal to oldval. Returns tru...

  • reset!

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

  • 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 times...

  • swap-vals!

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

  • deref

    Also reader macro: @var/@atom/@delay. Returns the most-recently-committed value of ref. When applied to a var or atom, r...

  • realized?

    Returns true if a value has been produced for a delay or lazy sequence.

  • volatile!

    Creates and returns a Volatile with an initial value of val.

  • volatile?

    Returns true if x is a volatile.

  • vreset!

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

  • vswap!

    Non-atomically swaps the value of the volatile as if: (apply f current-value-of-vol args). Returns the value that was sw...