From d6624dece8cd3de26a5f3e8c1e7c018ffc8870b7 Mon Sep 17 00:00:00 2001 From: nodist Date: Fri, 18 Sep 2026 12:56:34 -0400 Subject: call fork syntax --- docs/containers.md | 2 ++ docs/coroutines.md | 8 +++++--- docs/io.md | 2 ++ docs/memory.md | 2 ++ docs/syntax.md | 4 ++-- docs/tagging.md | 4 ++-- docs/thread.md | 2 ++ 7 files changed, 17 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/containers.md b/docs/containers.md index 6b7fc0c..da895db 100644 --- a/docs/containers.md +++ b/docs/containers.md @@ -16,6 +16,8 @@ * ```join`` +* ```format` + * ```log`` ### `[]` diff --git a/docs/coroutines.md b/docs/coroutines.md index b06922e..9f56024 100644 --- a/docs/coroutines.md +++ b/docs/coroutines.md @@ -8,11 +8,13 @@ * ```return`` -* ```sync`` +* ```call`` -* ```async`` +* ```fork`` -* ```await`` +* ```join`` + +* ```cancel`` * ```log`` diff --git a/docs/io.md b/docs/io.md index 591e2ac..c92e52d 100644 --- a/docs/io.md +++ b/docs/io.md @@ -2,4 +2,6 @@ --- +## Configuration + ## Initialization diff --git a/docs/memory.md b/docs/memory.md index c64e962..786fbc1 100644 --- a/docs/memory.md +++ b/docs/memory.md @@ -2,6 +2,8 @@ --- +## Configuration + ## Pooling ## Garbage Collection diff --git a/docs/syntax.md b/docs/syntax.md index 1c28324..0f133ea 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -102,7 +102,7 @@ ```text add : `{[I64 x; I64 y] x + y } -add `sync (1; 2) +add `call (1; 2) ``` ## Generators `^{[arguments] ... }` @@ -111,6 +111,6 @@ add `sync (1; 2) gen : ^{[I64 n] @ 1 .. n {[x] `yield x } } -it : gen `sync 10 +it : gen `init 10 `next it ``` diff --git a/docs/tagging.md b/docs/tagging.md index 2c392d8..0dd44e2 100644 --- a/docs/tagging.md +++ b/docs/tagging.md @@ -47,7 +47,7 @@ mu : `{[Bool i] ```text // using the mu corotuine from above -i : # mu `sync `true { +i : # mu `call `true { .int {[i] i } .float {[f] I64 f } } @@ -57,7 +57,7 @@ i : # mu `sync `true { ```text // using the mu coroutine from aboce -i : mu `sync.int `true +i : mu `call.int `true ``` ## Generators diff --git a/docs/thread.md b/docs/thread.md index d838417..b8f7c94 100644 --- a/docs/thread.md +++ b/docs/thread.md @@ -2,6 +2,8 @@ --- +## Configuration + ## Initialization ## Allocator -- cgit v1.2.3