ARK-Navigator icon indicating copy to clipboard operation
ARK-Navigator copied to clipboard

Coroutines finalizer

Open kirillt opened this issue 3 years ago • 1 comments

In case of the app crashing, we can lose coroutines which haven't been completed. We might need to write more asynchronous code but we can't allow modules like tags storage to lose new data.

We should implement global exception handler ("last frontier"), which knows about spawned coroutines and ensures they complete before crashing. The same handler would send crash reports (#78).

kirillt avatar Dec 28 '21 08:12 kirillt

Also this finalizer should be called when a user wants to kill the app, but we have some active coroutines. In this case, the user should see progress spinner with label "Saving".

kirillt avatar Feb 03 '22 11:02 kirillt