异步
Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.
Callable posture for asynchronous finite functions.
Aliases: async
Syntax: 函数 name(…) 异步 → T
Category#
async
Related#
Examples#
radix/corpus/fiet/fiet.fab (canonical · keyword)#
Callable posture for asynchronous finite functions.
# =============================================================================
# 异步 — Asynchronous finite callable posture
# =============================================================================
#
# What this teaches:
# • Preferred async posture word after the parameter list: `异步 → T`.
# • Return type is observed as `期约<T>` at call sites.
# • Consume with `等定`, `等变`, `等返`, or `等弃`.
#
# Common mistakes:
# • Using bare `让出` to await — await is not yield; use await morphology.
#
# See also: 未来, 期约, 等定, 等弃
# =============================================================================
# GRAMMAR:
# callablePosture :← '异步'
#
# EXPECTED OUTPUT:
# 42
函数 responde() 异步 → 整数 {
返回 42
}
异步入口 {
等定 _ responsum ← responde()
显示 responsum
}Expected output:
42