ClojureDocs

Nav

Namespaces

sync

clojure.core

Available since 1.0 (source)
  • (sync flags-ignored-for-now & body)
transaction-flags => TBD, pass nil for now
 Runs the exprs (in an implicit do) in a transaction that encompasses
exprs and any nested calls.  Starts a transaction if none is already
running on this thread. Any uncaught exception will abort the
transaction and flow out of sync. The exprs may be run more than
once, but any effects on Refs will be atomic.
0 Examples
No examples for clojure.core/sync.
See Also

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

Added by gstamp
1 Note
    By , created 14.5 years ago

    Same as dosync but allows for extra options (which are not currently supported). Probably best to use dosync instead at the moment.