ฟังก์ชั่นปกติทำงานตั้งแต่ต้นจนจบโดยไม่หยุดชั่วคราว ฟังก์ชั่น Suspend สามารถหยุดชั่วคราวที่จุด Suspend และกลับมาทำงานต่อจากจุดที่ค้างไว้ในขณะที่เธรดที่อยู่ด้านล่างทำงานอื่น นั่นไม่ใช่เวทย์มนตร์รันไทม์: คอมไพเลอร์ Kotlin เขียนฟังก์ชัน Suspend ใหม่ลงในเครื่องสถานะที่มีความต่อเนื่อง ซึ่งเป็นวัตถุที่จดจำวิธีการดำเนินการต่อ

การระงับหมายถึงอะไร
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.