रुको_चर
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Awaits a वादा and binds a mutable name.
Aliases: await_var
Syntax: रुको_चर T name ← future
Category#
async
Related#
Examples#
radix/corpus/variandum/variandum.fab (canonical · keyword)#
Awaits a वादा and binds a mutable name.
# =============================================================================
# रुको_चर — Await-bind mutable
# =============================================================================
#
# What this teaches:
# • Await a `वादा<T>` and bind the success value mutably.
#
# See also: रुको_स्थिर, रुको, async, वादा
# =============================================================================
फलन responde() async → संख्या {
लौटाओ 3
}
आरंभasync {
रुको_चर संख्या responsum ← responde()
responsum ← responsum + 1
दिखाओ responsum
}Expected output:
4