title: Kotlin room query not returning in time
body: <p>Here is where i get the problem</p>
  <pre><code>viewModelScope.launch {
              workout?.let { workout -&gt;
                  // Workout is not null
                  steps = stepDao.getWorkoutSteps(workout.workoutId)
                  Log.e(tag, &quot;steps old : ${workout.workoutId}&quot;)
              } ?: run {
                  // Workout is null, let's create it
                  newWorkoutAndStepsId = workoutDao.insert(Workout(&quot;&quot;)).toInt()
                  Log.e(tag, &quot;steps new : $newWorkoutAndStepsId&quot;)
  
                  var step1id = stepDao.insert(Step(&quot;Warm Up Jumping Jacks&quot;, 1, false, &quot;minute&quot;, newWorkoutAndStepsId)).toInt()
                  Log.e(tag, &quot;steps new : new step id $step1id&quot;)
                  stepDao.insert(Step(&quot;Rest&quot;, 15, true, &quot;second&quot;, newWorkoutAndStepsId))
  
                  steps = stepDao.getWorkoutSteps(newWorkoutAndStepsId)
  
  
                  //steps = stepDao.getWorkoutSteps(25)
              }
          }
  
  </code></pre>
  <p>the steps don't get returned in the case of the new workout, if i hard code the id then they do, the Logs both return ids as expected, but still the steps aren't returned</p>
  <p>thanks!</p>