रेंडरिंग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 stream functions.

Aliases: async_generator

Syntax: फलन name(…) async_जनक → T

Category#

async

Examples#

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

Callable posture for asynchronous stream functions.

# =============================================================================
# async_जनक — Asynchronous stream callable posture
# =============================================================================
#
# What this teaches:
#   • Async stream posture: `async_जनक → T` yields promised pulls of `T`.
#   • Yield with `आगेबढ़ो`; consume the stream with `दोहराओ सेवन` inside an async body.
#
# Common mistakes:
#   • Expecting every backend to lower `async_जनक` — some fail closed until a
#     channel/async-cursor carrier lands.
#
# See also: जनक, async, आगेबढ़ो
# =============================================================================

# GRAMMAR:
#   callablePosture :← 'async_जनक'
#
# BACKEND:
#   Product path is Rust async-cursor; other backends may fail closed.

फलन stream() async_जनक → संख्या {
    आगेबढ़ो 1
    आगेबढ़ो 2
}

आरंभasync {
    दोहराओ सेवन stream() स्थिर n {
        दिखाओ n
    }
}

Expected output:

1
2