12. Concurrency
Overview
In this chapter we will explore Clojure's concurrency features. On the JVM, you will learn the basics of programming with multiple processor threads: starting a new thread and using the results. To coordinate your threads, we will use Clojure's innovative reference types. One of these, the atom, can also be used in a JavaScript environment.
By the end of this chapter, you will be able to build simple browser games and manage their state using atoms.