just some random thought about sqldelight's corout...
# squarelibraries
a
just some random thought about sqldelight's coroutine extensions:
Copy code
@JvmOverloads
fun <T : Any> Flow<Query<T>>.mapToOne(
  context: CoroutineContext = Dispatchers.Default
): Flow<T> = map {
  withContext(context) {
    it.executeAsOne()
  }
}
wouldn't it be more idiomatic to use
flowOn
instead of
withContext
?