in your data layer i would do ```val models = flow...
# squarelibraries
j
in your data layer i would do
Copy code
val models = flow {
  val db = initDb() // <-- suspending lazy init pattern
  emitAll(db.whatever.models())
}
which hides the async initialization behind the first caller and also isolates your db as an implementation detail of the data layer