summaryrefslogtreecommitdiff
path: root/docs/type_system
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-05-14 16:22:03 -0400
committernodist <kevin.comas.git@gmail.com>2026-05-14 16:22:03 -0400
commitfdb84845b43d9fea2271671cb9732fb3b0515b7d (patch)
tree50e85a13c5f91d04633dc45fb4003530583e4eff /docs/type_system
parenta3ce6487e845a534bd0d710e19957cdf7001a7a8 (diff)
task is just a container
Diffstat (limited to 'docs/type_system')
-rw-r--r--docs/type_system/fn.md2
-rw-r--r--docs/type_system/task.md21
-rw-r--r--docs/type_system/union.md11
3 files changed, 14 insertions, 20 deletions
diff --git a/docs/type_system/fn.md b/docs/type_system/fn.md
index 64c49db..6ba8c1d 100644
--- a/docs/type_system/fn.md
+++ b/docs/type_system/fn.md
@@ -14,8 +14,6 @@ Fn[Fn_class; RETURN_TYPE; ARGS; STATE; List]
## \`yield
-## \`error
-
# Calling
## \`async
diff --git a/docs/type_system/task.md b/docs/type_system/task.md
index 099ac19..475d81a 100644
--- a/docs/type_system/task.md
+++ b/docs/type_system/task.md
@@ -5,24 +5,9 @@
An asynchronous encapsulation
```text
-Task[TYPE; Error]
-```
-
-## \`await
-
-```
-v : `await task // value is in v or error is thrown
-```
-
-# Matching
+Task_status `alias Enum[...]
-```text
-# `await task {
- .value { v ... }[v]
- .error { e ... }[e]
-}
+Task[Task_status; TYPE]
```
-## .value
-
-## .error
+## \`await
diff --git a/docs/type_system/union.md b/docs/type_system/union.md
index 57eedb4..f2c4ae0 100644
--- a/docs/type_system/union.md
+++ b/docs/type_system/union.md
@@ -14,3 +14,14 @@ u : Union[I64.a; I64.b; I64.c] $ (.c : 5)
{ ... } // default
}
```
+## Alias
+
+```text
+Result[ANY] `alias Union[ANY.value; Error.error]
+```
+
+## \`take
+
+```text
+value : .value `take 10 / var
+```