s
why ?
d
onErrorReturn
is expecting the same type as the one returned in
map
, which is
PagingSource.LoadResult.Page
. you need to specify the type explicitly, like
map<PagingSource.LoadResult> { }
instead
👍 1
e
this should work out fine with kotlinx.coroutines.flow because the variance allows it, but that looks like Rx, which doesn't
s
@Desmond Teo Yes! you are right, thanks bro.