การเรนเดอร์th-TH

รอทิ้ง

Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH 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