Room DateBase 에 접근할 때 Main Thread 에서 하게 되면 오류 발생한다.
[해결 전]
DataRespository class 에서 Room 에 접근하려고 할 때 '~.subscribeOn(schedulerProvider.io())' 코드를 빼먹었더니
오류 발생함.
[해결 후]
'~.subscribeOn(schedulerProvider.io())' 코드 추가.
참고)
Room DateBase 에 접근할 때 Main Thread 에서 하게 되면 오류 발생한다.
[해결 전]
DataRespository class 에서 Room 에 접근하려고 할 때 '~.subscribeOn(schedulerProvider.io())' 코드를 빼먹었더니
오류 발생함.
[해결 후]
'~.subscribeOn(schedulerProvider.io())' 코드 추가.
참고)