What is delay() in Kotlin Coroutines?
Suspends the coroutine without blocking the thread
A loop control
Constructs methods dynamically
References constructors
Answer and explanation
The delay() function is a coroutine-friendly way to pause execution without blocking the thread, allowing other coroutines to run.
launch
{
println("Starting coroutine")
delay(1000)
println("Delayed message")
}
