No code that follows the finally block, or code in external areas, will be executed without first executing the finally block (an exception in the finally block can lead to its premature termination, in which case execution will jump out of the finalizer for external coverage). If the code before the finally block gets stuck in an infinite loop or method that never exits, or if the execution context is completely destroyed, the finally block will not be executed.
Note that you end up blocking, unlike the Finalize methods (or C # destructors), which you should not rely on properly.
supercat Sep 21 2018-11-21T00: 00Z
source share