본문 바로가기

코틀린

코루틴 사용시 추가해야하는 의존성

//코루틴
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.9.0'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0' //테스트용의존성,runtest같은거

 

최신버전은 https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/ 여기서 확인하고,뒤에 1.9.0만 다 바꿔주면됨