Basic Suspend & Resume Example
This example demonstrates the basic suspend and resume mechanism of Cortex coroutines.
Click "Start Coroutine" to begin, then click "Resume Next Step" repeatedly to see the coroutine suspend and resume at each step. The coroutine maintains its state between suspensions!
Each call to ctx.Suspend() yields control back to JavaScript, allowing
you to manually control when the coroutine continues execution.