रुको_स्थिर
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Awaits a वादा and binds an immutable name.
Aliases: await_const
Syntax: रुको_स्थिर T name ← future
Category#
async
Related#
Examples#
radix/corpus/figendum/figendum.fab (canonical · keyword)#
Awaits a वादा and binds an immutable name.
# =============================================================================
# रुको_स्थिर — Await-bind immutable
# =============================================================================
#
# What this teaches:
# • Await a `वादा<T>` and bind the success value immutably.
# • Valid in `async` / `async_जनक` / `आरंभasync` contexts.
#
# See also: रुको_चर, रुको, रुको_लौटाओ, async, वादा
# =============================================================================
# GRAMMAR:
# awaitBind :← 'रुको_स्थिर' type? IDENT '←' expr
फलन responde() async → संख्या {
लौटाओ 7
}
आरंभasync {
रुको_स्थिर संख्या responsum ← responde()
दिखाओ responsum
}Expected output:
7