https://kotlinlang.org logo
#coroutines
Title
# coroutines
c

Chainchelliah

08/03/2019, 7:17 PM
Room suspend function with Livedata not working. Conversion error is occurred while compiling. Room version is 2.1.0. PS: I resolved this error by removing the suspend keyword. Any other ways to resolve this error.
m

Mark Murphy

08/03/2019, 7:31 PM
If you are returning
LiveData
from an
@Query
-annotated function, you do not need the function to be marked with
suspend
. So, your resolution is the correct one.
☝️ 1
👍 1
6 Views