रेंडरिंगhi

async

Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.

Callable posture for asynchronous finite functions.

Aliases: async

Syntax: फलन name(…) async → T

Category#

async

Examples#

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

Callable posture for asynchronous finite functions.

# =============================================================================
# async — Asynchronous finite callable posture
# =============================================================================
#
# What this teaches:
#   • Preferred async posture word after the parameter list: `async → T`.
#   • Return type is observed as `वादा<T>` at call sites.
#   • Consume with `रुको_स्थिर`, `रुको_चर`, `रुको_लौटाओ`, or `रुको`.
#
# Common mistakes:
#   • Using bare `आगेबढ़ो` to await — await is not yield; use await morphology.
#
# See also: भविष्य, वादा, रुको_स्थिर, रुको
# =============================================================================

# GRAMMAR:
#   callablePosture :← 'async'
#
# EXPECTED OUTPUT:
#   42

फलन responde() async → संख्या {
    लौटाओ 42
}

आरंभasync {
    रुको_स्थिर _ responsum ← responde()
    दिखाओ responsum
}

Expected output:

42