Snappy/AsyncShutdown: Difference between revisions

Jump to navigation Jump to search
(Created page with "= Asynchronous shutdown = At the moment, Firefox shuts down mostly sequentially. Waiting until an asynchronous task is complete before proceeding with shutdown is complicated...")
 
Line 1: Line 1:
= Asynchronous shutdown =
= Our objective =


At the moment, Firefox shuts down mostly sequentially. Waiting until an asynchronous task is complete before proceeding with shutdown is complicated and requires spinning the event loop, which is generally Not a Good Idea.
At the moment, Firefox shuts down mostly sequentially. Waiting until an asynchronous task is complete before proceeding with shutdown is complicated and requires spinning the event loop, which is generally Not a Good Idea.


== Use cases ==
We need to start thinking about a way to shutdown asynchronous services.
=== Asynchronous databases need to be AsyncClosed() ===
 
= Use cases =
== Asynchronous databases need to be AsyncClosed() ==
(TBD)
(TBD)


=== Telemetry data must be saved asynchronously ===
== Telemetry data must be saved asynchronously ==
(TBD)
(TBD)
= Related bugs =
- https://bugzilla.mozilla.org/show_bug.cgi?id=722648 - Asynchronous observers.
- https://bugzilla.mozilla.org/show_bug.cgi?id=881667 - Expose startup/shutdown stage to components.
184

edits

Navigation menu