what I want to do is get network data by firebase AddSnapshotListener, store it in room database and get data from room database

so what I done is down here...

```
// in dataSource
fun getNetworkData(id : String) = callbackFlow<Data> {
    ....
    streamingApi.get{
        trySend(it)
    }
    ...
}

//in repository
fun insertData(id : String) = getNetworkData(id).map{
    roomDao.insert(it)
}

fun getRoomData() = roomDao.get()

// viewmodel
viewmodelScope.launch{
    repository.insertData(id).collect()
    repository.getRoomData().onEach{
        updateUi()
        ...
    }
}

```

but is it possible collect at once like this?

```
fun insertAndGet() = flow{
    insertData().collect()
    getRoomData().collect()
}

```

and is it right way collect flow in repository?