From dcf57ffd19ee65c46e9ee635ca6f8238b8f1f07f Mon Sep 17 00:00:00 2001 From: nodist Date: Tue, 19 May 2026 15:45:45 -0400 Subject: use sync and async for calling --- docs/type_system/fn.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/type_system/fn.md') 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 ``` -- cgit v1.2.3