↢
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 while initializing an ordinary binding.
Syntax: hằng T name ↢ future
Category#
async
Related#
Examples#
radix/corpus/await-assignment/await-assignment.fab (canonical · operator)#
Awaits a lời_hứa while initializing an ordinary binding.
# =============================================================================
# ↢ — Await-directed binding initializer
# =============================================================================
#
# What this teaches:
# • Keep hằng, biến, or đặt while awaiting the initializer.
# • The glyph is a binding boundary, not an inline expression operator.
# • A stored lời_hứa can be resolved in a later declaration.
#
# See also: đợi_hằng, đợi_biến, async, lời_hứa
# =============================================================================
hàm responde(số giá_trị) async → số {
trả giá_trị
}
bắt_đầu_bất_đồng_bộ {
hằng lời_hứa<số> việc_cần_làm ← responde(7)
hằng số immotum ↢ việc_cần_làm
biến số mutabile ↢ responde(8)
hằng _ illatum ↢ responde(9)
mutabile ← mutabile + 1
ghi_chú immotum
ghi_chú mutabile
ghi_chú illatum
}Expected output:
7
9
9