Couroutines complier error

When I am writing launch, withContext(Dependencies.IO) it is giving compiler error.

Please guide me to solve the issue.

WithContext method takes coroutine context as argument and runs its suspending block on that coroutine.

You are passing Dependencies.IO as argument which I don’t sure is any keyword even exist in kotlin.
There are five dispatchers (IO,MAIN,DEFAULT,CONFINED and UNCONFINED) , You should use any one as code snippet like below .

     CoroutineScope(Dispatchers.IO).launch {
        //inside coroutine
        withContext(this.coroutineContext){
            

        }
    }

A coroutine is required to provide coroutine context to withContext method . You can also use context of viewModelScoped coroutine and Main coroutine .

You can read more about withContext on link below.
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/with-context.html

If you are still not clear . Share your code so that I can more clearly understand your problem and can provide a more better solution.