On Fri, Jun 07, 2019 at 11:40:05AM -0700, Chris Peterson wrote:
Note that on Android, you may never get an opportunity for a clean shutdown because the OS can kill your app at any time.

I don't know what is the recommendation for shutdown activities on Android. The GeckoView team has had some recent bugs caused by shutdown tasks not running (e.g. committing cached font files or deleting temp files). I think these tasks were moved to startup or scheduled to run periodically.

A lot of things really need to have flush timeouts with shutdown blockers for their finalizers. In JS land, we have helpers like DeferredTask and JSONFile for that. I don't think we really have anything comparable for C++.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to