António Bastião
11/14/2019, 3:07 PMrequestData()
is called twice and how to avoid it?
Observable.just(Unit)
.delay(REPEAT_DELAY, TimeUnit.MILLISECONDS)
.repeat()
.async(job)
.subscribe({ requestData() },
{
Timber.e(it, "subscribeError")
}
)
tseisel
11/14/2019, 3:20 PMasync
function comes from ? I can't resolve it.António Bastião
11/14/2019, 3:38 PMAntónio Bastião
11/14/2019, 3:39 PMtseisel
11/14/2019, 4:53 PMrepeat
operator : it will re-emit the same Unit
undefinitely, every REPEAT_DELAY
. Maybe you could tell us more about what you want to achieve ?António Bastião
11/14/2019, 5:08 PM