Skip to content

Commit

Permalink
change the note style and link to the ref data type.
Browse files Browse the repository at this point in the history
Signed-off-by: Milad Khajavi <khajavi@gmail.com>
  • Loading branch information
khajavi committed Mar 26, 2021
1 parent 06db585 commit 3992ca4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/datatypes/concurrency/refm.md
Expand Up @@ -4,7 +4,9 @@ title: "RefM"
---
`RefM[A]` models a **mutable reference** to a value of type `A` in which we can store **immutable** data, and update it atomically **and** effectfully.

Almost all of `RefM` operations are the same as `Ref`. We suggest reading `Ref` at first if you are not familiar with `Ref`.
> _**Note:**_
>
> Almost all of `RefM` operations are the same as `Ref`. We suggest reading [`Ref`](ref.md) at first if you are not familiar with `Ref`.
Let's explain how we can update a shared state effectfully with `RefM`. The `update` method and all other related methods get an effectful operation and then run they run these effects to change the shared state. This is the main difference between `RefM` and `Ref`.

Expand Down

0 comments on commit 3992ca4

Please sign in to comment.