summaryrefslogtreecommitdiff
path: root/docs/type_system/task.md
blob: ae547b225a5d2208d4cb701321d0d523eee55ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Task

---

A segment of code assigned to a process, task code can be recursive

```text
Task[[] TYPE]
```

## Type Body Object Definitions

```c
typedef struct {
    kpl_ptr type;
    kpl_interface *interface;
} kpl_type_body_task;
```

## \`await