Skip to content

Instantly share code, notes, and snippets.

@jaimemin
Created November 7, 2024 16:23
fun main() = runBlocking<Unit> {
val whileJob: Job = launch(Dispatchers.Default) {
while (true) {
println("작업 중")
yield()
}
}
delay(100L)
whileJob.cancel()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment