author Aaron Klotz <>
Thu, 15 Aug 2019 19:08:39 +0000
changeset 488327 f510b32aec3a54efcf58e16f5c5813e2809dd901
parent 431355 a8e3b457c43d7686b915463c93ad9aeb5b737f82
permissions -rw-r--r--
Bug 1573623: Add RunOnShutdown, a variant of ClearOnShutdown which supports passing callables; r=froydnj This patch adds `RunOnShutdown`, which allows the caller to supply any callable to be invoked during the specified shutdown phase. This allows us to do more than just clear smart pointers without needing to write a bunch of observer service boilerplate. We use `std::function` to hold the callable. Differential Revision:

For a full list of the people who are credited with making a
contribution to Mozilla, see .