There are also atomic references when mutability is the best approach. This is forcing single writer but in the API rather than as a proof.