Alexander Suraphel
11/15/2021, 4:59 PMBenoît
11/16/2021, 12:17 PMAlexander Suraphel
11/16/2021, 12:18 PMBenoît
11/16/2021, 12:21 PMGlobalScope.launch{}
and on Android I'd use WorkManagerAlexander Suraphel
11/16/2021, 12:32 PMBenoît
11/16/2021, 12:35 PMBenoît
11/16/2021, 12:39 PMGlobalScope.launch
on desktop and your process gets killed somehow, for example if a fatal crash happens somewhere else in your code which causes the death of the process, then your work would be lost.
On Android the WorkManager would restart your work a bit later. So you might wanna implement a custom solution to handle that edge case on desktopAlexander Suraphel
11/16/2021, 12:40 PM