↢
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Awaits a वादा while initializing an ordinary binding.
Syntax: स्थिर T name ↢ future
Category#
async
Related#
Examples#
radix/corpus/await-assignment/await-assignment.fab (canonical · operator)#
Awaits a वादा while initializing an ordinary binding.
# =============================================================================
# ↢ — Await-directed binding initializer
# =============================================================================
#
# What this teaches:
# • Keep स्थिर, चर, or बैठा while awaiting the initializer.
# • The glyph is a binding boundary, not an inline expression operator.
# • A stored वादा can be resolved in a later declaration.
#
# See also: रुको_स्थिर, रुको_चर, async, वादा
# =============================================================================
फलन responde(संख्या मान) async → संख्या {
लौटाओ मान
}
आरंभasync {
स्थिर वादा<संख्या> लंबित ← responde(7)
स्थिर संख्या immotum ↢ लंबित
चर संख्या mutabile ↢ responde(8)
स्थिर _ illatum ↢ responde(9)
mutabile ← mutabile + 1
दिखाओ immotum
दिखाओ mutabile
दिखाओ illatum
}Expected output:
7
9
9