渲染zh-Hans

等弃

Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.

Awaits a 期约 and discards the success value.

Aliases: await

Syntax: 等弃 future

Category#

async

Examples#

radix/corpus/tacebit/tacebit.fab (canonical · keyword)#

Awaits a 期约 and discards the success value.

# =============================================================================
# 等弃 — Await-discard
# =============================================================================
#
# What this teaches:
#   • Await any success type `T` and discard the resolved value.
#   • Prefer when side effects matter and the success payload is unused.
#
# See also: 等定, 等返, 异步, 期约
# =============================================================================

# GRAMMAR:
#   awaitDiscard :← '等弃' expr

函数 responde() 异步 → 整数 {
    返回 1
}

异步入口 {
    等弃 responde()
    显示 "done"
}

Expected output:

done