渲染zh-Hant

reddet

Translation status: 繁體中文 reader-locale proof. Code fences render through the zh-Hant pipeline; prose is canonical Latin.

Awaits a promissum and returns its success value from a fiet body.

Aliases: return_await

Syntax: reddet future

Category#

async

Examples#

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

Awaits a promissum and returns its success value from a fiet body.

# =============================================================================
# reddet — Await-return
# =============================================================================
#
# What this teaches:
#   • Await and return from a `fiet` function only (`reddet future`).
#
# See also: figendum, tacebit, fiet, redde
# =============================================================================

functio inner() fiet → numerus { redde 9 }

functio outer() fiet → numerus { reddet inner() }

incipiet { figendum numerus v ← outer() nota v }