أعد_منتظرا
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Awaits a وعد and returns its success value from a غيرمتزامن body.
Aliases: return_await
Syntax: أعد_منتظرا future
Category#
async
Related#
Examples#
radix/corpus/reddet/reddet.fab (canonical · keyword)#
Awaits a وعد and returns its success value from a غيرمتزامن body.
# =============================================================================
# أعد_منتظرا — Await-return
# =============================================================================
#
# What this teaches:
# • Await and return from a `غيرمتزامن` function only (`أعد_منتظرا future`).
#
# See also: انتظر_ثابت, انتظر, غيرمتزامن, أعد
# =============================================================================
دالة interior() غيرمتزامن → عدد {
أعد 9
}
دالة exterior() غيرمتزامن → عدد {
أعد_منتظرا interior()
}
استهلال {
انتظر_ثابت عدد v ← exterior()
اعرض v
}Expected output:
9