New at development of android apps. I am using kotlin and I am triying to retrieve a list from room database at my viewmodel and make a toast at my fragment when I push a button (codes below). If I push the button once, I get an empty string, but if I push twice, I get the list. How can I do to retrive the list with just one push? Probably I am missing something from coroutines.

Viewmodel code:

```
var Listado = ""

    fun listaTotal(): String {
        uiScope.launch {
            getTodaListaCompra().forEach{
                Log.i("Listado Compra",Listado )
                Listado = Listado + " " + it
                Log.i("Data",data.value)
                Log.i("Pueba",it)
            }
        }
        return Listado 
    }

```

Fragment call:

```
Toast.makeText(application, tabListaCompraViewModel.listaTotal(), Toast.LENGTH_SHORT)
                .show()

```

Thanks in advance