summaryrefslogtreecommitdiff
path: root/docs/type_system/fn.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-05-19 15:45:45 -0400
committernodist <kevin.comas.git@gmail.com>2026-05-19 15:45:45 -0400
commitdcf57ffd19ee65c46e9ee635ca6f8238b8f1f07f (patch)
treedbede69014883640ae317e305877b714ec7bf98e /docs/type_system/fn.md
parent3593ab47e110f7d3b5ef9da7c155bab8e4979236 (diff)
use sync and async for calling
Diffstat (limited to 'docs/type_system/fn.md')
-rw-r--r--docs/type_system/fn.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/type_system/fn.md b/docs/type_system/fn.md
index 0b8c844..dce371d 100644
--- a/docs/type_system/fn.md
+++ b/docs/type_system/fn.md
@@ -27,7 +27,7 @@ it : fn `sync 10
@ it { `log v }[v] // 2 4 6 8 10 12 14 16 18 20
// same as above
@ {
- # `call_sync it {
+ # `sync it {
.value { `log v }[v]
.done { `break }
.error { `return e }[e]
@@ -37,15 +37,15 @@ it : fn `sync 10
# Calling
-## \`call_async
+## \`async
```text
-task : `call_async fn
-value : `task_wait task
+task : `async fn
+value : `wait task
```
-## \`call_sync
+## \`sync
```text
-fn `call_sync args // `task_wait fn `call_async args
+fn `sync args // `wait fn `async args
```