Kết xuấtvi

đợi_bỏ

Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.

Awaits a lời_hứa and discards the success value.

Aliases: await

Syntax: đợi_bỏ future

Category#

async

Examples#

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

Awaits a lời_hứa and discards the success value.

# =============================================================================
# đợi_bỏ — 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: đợi_hằng, đợi_trả, async, lời_hứa
# =============================================================================

# GRAMMAR:
#   awaitDiscard :← 'đợi_bỏ' expr

hàm responde() async → số {
    trả 1
}

bắt_đầu_bất_đồng_bộ {
    đợi_bỏ responde()
    ghi_chú "done"
}

Expected output:

done