What is Clojure volatile? -


there has been addition in recent clojure 1.7 release : volatile!

volatile used in many languages, including java, semantics in clojure?

what do? when useful?

volatiles "faster atom" no atomicity guarantees. introduced atoms considered slow hold state in transducers.

there new set of functions (volatile!, vswap!, vreset!, volatile?) create , use volatile "boxes" hold state in stateful transducers. volatiles faster atoms give atomicity guarantees should used thread isolation


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -