Assuming that retry blocks until something changes, you could associateI was wondering if it was possible to implement synchronous channels
within STM. In particular, I'd like to have CSP-like send and recv primitives
on a channel that each block until the other side arrives to complete
the transaction.
a channel with a thread that encapsulates the transaction. Somewhat like this?