العرضar

انتظر

Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.

Awaits a وعد and discards the success value.

Aliases: await

Syntax: انتظر future

Category#

async

Examples#

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

Awaits a وعد and discards the success value.

# =============================================================================
# انتظر — Await-discard
# =============================================================================
#
# What this teaches:
#   • Await any success type `T` and discard the resolved value.
#   • Prefer when side effects matter and the success payload is unused.
#
# See also: انتظر_ثابت, أعد_منتظرا, غيرمتزامن, وعد
# =============================================================================

# GRAMMAR:
#   awaitDiscard :← 'انتظر' expr

دالة responde() غيرمتزامن → عدد {
    أعد 1
}

استهلال {
    انتظر responde()
    اعرض "done"
}

Expected output:

done