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

dekans

12/14/2017, 10:46 AM
coroutines are a good way, Elizarov posted an example https://stackoverflow.com/a/46890009/3485324
n

nil2l

12/14/2017, 11:08 AM
But it seems coroutine will spam always in background. AlarmManager can respect device wake/sleep.
d

dekans

12/14/2017, 1:14 PM
Depends on the delay you wanna set. For some ms/s, coroutines. If you wanna retry 1 hour later, go for AlarmManager yes. I assumed it was an immediate retry
4 Views