android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.4k stars 8.29k forks source link

How to deal with Room @Transaction with Rxjava #1008

Closed ImagineYao closed 2 years ago

ImagineYao commented 3 years ago
    @Insert
    fun addPerson(person: Person): Completable

    @Delete
    fun deletePerson(person: Person): Completable

I want to use Transaction to combine this two methods, but I get a compile error: java.lang.reflect.InvocationTargetException . How can I correct it?