Open
Description
Add some warnings on avoiding impure code, mutation operations within transactions to the README.md
.
Here is some excerpted text written by @polytypic already that is a good start:
(From https://discuss.ocaml.org/t/ann-kcas-and-kcas-data-0-3-0-software-transactional-memory/12085/16)
Yes, when using kcas transactions, one should be aware of the fact that the transaction function may be called many times and transactional shared memory location accesses within the transaction may choose to raise exceptions to force the transaction to be retried later.
To be safe, kcas transactions should typically be pure (no use of refs or mutable, no IO, …).
...
Activity