Unresolved reference async in Kotlin

后端 未结 3 1992
情歌与酒
情歌与酒 2021-01-04 03:22

I am trying to perform network operation async in Kotlin. I read it you can do async using async function. I am getting below error, can anyone gue

3条回答
  •  被撕碎了的回忆
    2021-01-04 03:54

    Different Kotlin libraries can have different implementations of async that do different things.

    If you wanted the general async-await function from the core library, make sure you have a dependency to kotlinx.coroutines

提交回复
热议问题