목록Coroutine (1)
벌꿀오소리가 되고싶은
CoroutineScope 부모 코루틴과 독립적으로 동작하기
suspend fun exampleFunction() { coroutineScope { launch(Dispatchers.IO) { // This block will run asynchronously println("Coroutine started") delay(1000) // Simulate some long-running task println("Coroutine finished") } // This block will wait until the above launch completes } println("coroutineScope block completed")}작동 ..
개발
2024. 6. 3. 22:11