3 ms·
The question of orderly shutdown still remains
by troupo 2y ago
The question of orderly shutdown still remains
- arccy 2y agodeferred functions still run, that's the shutdown.
- usrbinbash 2y agoAs another user has already mentioned, deferred functions run even when a panic unwinds the stack. And semantically, a panic doesn't even need an orderly shutdown. Again: A panic should ONLY be issued if the application enters a state where continuation of normal operation is not possible, and/or may even be ill advised. "Orderly" operations are, by definition, no longer possible at this point.