summaryrefslogtreecommitdiff
path: root/docs/type_system/shared.md
blob: b6e9dedc9d897ad33177701a7eb9ba74f57f4904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Shared

---

```text

Shared[TYPE]
```

# Use in Asynchronous Functions

# Garbage Collection

A tracing mark and sweep garbage collector is used

# Mutating

```text
x : Shared[Array] $ (1; 2; 3)
^ x {[y]
    y `push 4
}
`log x // Shared[Array[I64]] $ (1; 2; 3; 4)
```