title: How to get ID of insert query in Room db with coroutines
body: <p>I want to get callback when insert data successfully in Roomdb with coroutine</p>
  
  <p><br>MyDao.kt</p>
  
  <pre><code>@Dao
  interface MyDao {
  
      @Insert(onConflict = OnConflictStrategy.REPLACE)
      suspend fun insert(obj: Task): Long
  }
  </code></pre>
  
  <p><br>TaskViewModel.kt</p>
  
  <pre><code>class TaskViewModel(var context:Context) : ViewModel{
      private var appDao: AppDao
  
      init {
          val db = AppDatabase.getInstance(context)
          appDao = db.appDao()
      }
  
      fun insertTask(tast: Task) {
          GlobalScope.launch {
            val mID = appDao.insert(task)
          }
      }
  }
  </code></pre>
  
  <p>How to return <code>mID</code> from <code>insertTask()</code> method ?</p>
  
  <p>Thanks you in advance</p>