Component - withContext for thread switching
This Kotlin coroutine example shows how withContext switches the thread to perform background work and then returns to the main thread to update the UI. It helps keep the app responsive by doing heavy tasks off the main thread.