summaryrefslogtreecommitdiff
path: root/docs/type_system/task.md
blob: 56d232c6e824b656d9e2884699eab436a88c2677 (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_type *type;
    kpl_interface *interface;
} kpl_type_body_task;
```

## \`await