Deinitialization contract for objects requiring async cleanup. Implementers provide a way to tear down/finalize state after use.
Counterpart to IInitizable - called during application shutdown. Ensures graceful cleanup of resources: connections, file handles, listeners.
Usage patterns:
Typically called once during application shutdown, before process exit. Should be idempotent when possible (calling deInit() multiple times is safe).
IMPORT_PATH: "@daiso-tech/core/utilities"
"@daiso-tech/core/utilities"
Deinitializes the object. Performs any async cleanup required to shut down gracefully. Should release resources and finalize internal state.
Void promise (resolves when deinitialization complete)
Error if deinitialization fails (should log but not block shutdown)
Deinitialization contract for objects requiring async cleanup. Implementers provide a way to tear down/finalize state after use.
Counterpart to IInitizable - called during application shutdown. Ensures graceful cleanup of resources: connections, file handles, listeners.
Usage patterns:
Typically called once during application shutdown, before process exit. Should be idempotent when possible (calling deInit() multiple times is safe).
IMPORT_PATH:
"@daiso-tech/core/utilities"