Is there a better way to create a `CoroutineContex...
# coroutines
s
Is there a better way to create a
CoroutineContext
than this? I used to be able to do
CoroutineContext(Dispatcher)
, but that doesn't seem to work anymore.
Copy code
private val coroutineScope: CoroutineScope = object : CoroutineScope {
      private val context = Platform.createApiCoroutineDispatcher()

      override val coroutineContext: CoroutineContext
        get() = context
    }