Skip to content

Instantly share code, notes, and snippets.

@jaimemin
Created November 7, 2024 16:55
fun main() = runBlocking<Unit> {
val job: Job = launch {
delay(5000L)
}
job.cancelAndJoin() // 코루틴 취소 요청 + 취소가 완료될 때까지 대기
printJobState(job)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment