package com.example.coroutinelaunch import kotlinx.coroutines.* class ExampleRepository: CoroutineScope { private val job = Job() override val coroutineContext = Dispatchers.Main.immediate + job suspend fun doSomething() { launch { delay(100) } } }