渲染zh-Hant

等棄

Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant 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