S42-Core Shutdown
SHUTDOWN
Overview
The SHUTDOWN
module in s42-core
is used to specify an array of processes (functions) that you want to execute when the process is about to terminate. This is typically used to close database connections, event domains (very important), etc.
Usage
Basic Example
Methods
- cleanupFunctions: An array of functions to call during shutdown. These functions should NOT be asynchronous.