Really I rechecked the problem and `context` is th...
# squarelibraries
j
Really I rechecked the problem and
context
is the problem, using
EmptyCoroutineContext
works for me. About your question, I think using default params let the lib consumer check what is used and change it if the consumer needs it. What do you think about this?
Copy code
suspend fun <T> Flow<T>.test(
  timeout: Duration = 1.seconds,
  start: CoroutineStart = UNDISPATCHED,
  context: CoroutineContext = Unconfined,
  validate: suspend FlowTurbine<T>.() -> Unit
) {
  coroutineScope {
  ...

    val collectJob = launch(start = start, context = context) {
      ...
    }
  }
}