مولد_غيرمتزامن
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Callable posture for asynchronous stream functions.
Aliases: async_generator
Syntax: دالة name(…) مولد_غيرمتزامن → T
Category#
async
Related#
Examples#
radix/corpus/fient/fient.fab (canonical · keyword)#
Callable posture for asynchronous stream functions.
# =============================================================================
# مولد_غيرمتزامن — Asynchronous stream callable posture
# =============================================================================
#
# What this teaches:
# • Async stream posture: `مولد_غيرمتزامن → T` yields promised pulls of `T`.
# • Yield with `سلم`; consume the stream with `كرر من` inside an async body.
#
# Common mistakes:
# • Expecting every backend to lower `مولد_غيرمتزامن` — some fail closed until a
# channel/async-cursor carrier lands.
#
# See also: مولد, غيرمتزامن, سلم
# =============================================================================
# GRAMMAR:
# callablePosture :← 'مولد_غيرمتزامن'
#
# BACKEND:
# Product path is Rust async-cursor; other backends may fail closed.
دالة stream() مولد_غيرمتزامن → عدد {
سلم 1
سلم 2
}
استهلال {
كرر من stream() ثابت n {
اعرض n
}
}Expected output:
1
2