Update concurrent.md

This commit is contained in:
Justin Ethier 2019-06-27 13:40:52 -04:00 committed by GitHub
parent 164974550a
commit b99702468c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,9 @@ Based on the procedure of the same name from Clojure.
(compare-and-set! atom oldval newval)
Atomically changes the value of `atom` to `newval` but only if the value of `atom` is currently equal to `oldval`. Based on the procedure of the same name from Clojure. This is also commonly known as the compare-and-swap (CAS) atomic instruction.
Atomically changes the value of `atom` to `newval` but only if the value of `atom` is currently equal to `oldval`. This is also commonly known as the compare-and-swap (CAS) atomic instruction.
Based on the procedure of the same name from Clojure.
## Futures