Background Services #3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
grammers is a Long Running (May take some time to complete), Impersistent work (No longer scheduled after the process ends). It needs to run pretty much all the time in order to receive socket updates from Telegram. However, if the process ends, we wouldn't really want it to relaunch itself to keep working. It should only work for as long as the user is interested.
However, the Guide to background work says:
It tends to talk about durations such as "10 minutes", "15 minutes", but grammers may need to run for hours, or even days.
Perhaps it would be interesting to learn how DrKLO/Telegram achieves this, or maybe TGX-Android/Telegram-X.
This might also not be "essential" to run once the app is closed if notifications work via Push notifications.
StackOverflow has this to say regarding using threads vs proper services: