title: Not sure how to handle insert method's return type
body: <p>Not sure how to handle insert method's return type.</p>
  
  <pre><code>@Dao
  interface ProductDao {
  
      @Insert(onConflict = OnConflictStrategy.REPLACE)
      fun insertAlll( product:List&lt;Product&gt;):List&lt;Product&gt;
  }
  </code></pre>
  
  <pre><code> override fun getFactoriProduct(): Observable&lt;List&lt;Product&gt;&gt; {
          return Observable.create { emitter -&gt;
              api.getProductRemote()
                  .subscribeOn(Schedulers.io())
                  .observeOn(AndroidSchedulers.mainThread())
                  .subscribe({
                      if (it != null) {
                          emitter.onNext(db.productDao().insertAlll(it))
                          Timber.e("request-&gt;$it")
                      }
                  }, {
                      emitter.onNext(db.productDao().getProduct())
                      it.printStackTrace()
                      Timber.e("ErrorRequest-&gt;$it")
                  })
          }
      }
  </code></pre>
  
  <p>activity.kt</p>
  
  <pre><code>
   fun init() {
          mainViewmodel.getProduct().subscribe {
              val adapter = ProductAdapter(it)
              RecyclerView2.layoutManager = LinearLayoutManager(this, LinearLayout.HORIZONTAL, false)
              RecyclerView2.adapter = adapter
              adapter.update(it)
          }.addTo(this.CompositeDisposable)
  </code></pre>
  
  <p>how to handle insert method's return type.
      public abstract java.util.List insertAlll(@org.jetbrains.annotations.NotNull()</p>