Liking cljdoc? Tell your friends :D

schism.core


convergeclj/s

(converge c1 c2)

Return a converged copy of c1 containing the modifications of c2. Convergence is defined on a per-type basis. If c1 has metadata, retain that metadata on the returned result. Convergence ticks the vector clock for the node on which convergence is occurring. c1 and c2 must be collections of the same type.

The behavior of converge is not defined when either:

  • The current value of schism.node/*current-node* is nil

  • The current value of schism.node/*current-node* is shared with another node making modifications to the same logical collection.

Return a converged copy of `c1` containing the modifications of
`c2`. Convergence is defined on a per-type basis. If `c1` has
metadata, retain that metadata on the returned result. Convergence
ticks the vector clock for the node on which convergence is
occurring. `c1` and `c2` must be collections of the same type.

The behavior of `converge` is not defined when either:

- The current value of `schism.node/*current-node*` is nil

- The current value of `schism.node/*current-node*` is shared with
another node making modifications to the same logical collection.
sourceraw docstring

convergent-listclj/s

(convergent-list & args)

Create a new convergent list containing args. Args will be placed into the list in the order they appear during invocation, just as with clojure.core/list. Each entry will be recorded as being added to the list by the current node at invocation time.

Create a new convergent list containing args. Args will be placed
into the list in the order they appear during invocation, just as
with `clojure.core/list`. Each entry will be recorded as being added
to the list by the current node at invocation time.
sourceraw docstring

convergent-mapclj/s

(convergent-map & args)

Create a new ORMWOT, establishing associations between each pair of key-value arguments. Each entry will be recorded as being added to the map by the current node at invocation time.

Create a new ORMWOT, establishing associations between each pair of
key-value arguments. Each entry will be recorded as being added to
the map by the current node at invocation time.
sourceraw docstring

convergent-setclj/s

(convergent-set & args)

Create a new ORSWOT containing args. Each arg will be recorded as being added to the set by the current node at invocation time.

Create a new ORSWOT containing args. Each arg will be recorded as
being added to the set by the current node at invocation time.
sourceraw docstring

convergent-vectorclj/s

(convergent-vector & args)

Create a new convergent vector containing args. Each entry will be recorded as being added to the list by the current node at invocation time, in the ordinal position it occupied during invocation.

Create a new convergent vector containing args. Each entry will be
recorded as being added to the list by the current node at
invocation time, in the ordinal position it occupied during
invocation.
sourceraw docstring

initialize-node!clj/s

Initialize the current node to an edn serializable value if provided. If invoked with no argument, initializes the current node to a random UUID.

Initialize the current node to an edn serializable value if
provided. If invoked with no argument, initializes the current node
to a random UUID.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close