shutdown

open fun shutdown(program: Program)(source)

Allows the extension to perform clean-up or resource deallocation tasks during the shutdown phase of the program's lifecycle.

This method is called when the program is ending, enabling the extension to release resources or save the necessary state before termination.

Parameters

program

the program instance associated with this shutdown process, used to finalize and clean up any resources or state related to the extension.