LifecycleService.addShutdownHook()
Home > @backstage/backend-plugin-api
> LifecycleService
> addShutdownHook
Register a function to be called when the backend is shutting down.
Signature:
addShutdownHook(hook: LifecycleServiceShutdownHook, options?: LifecycleServiceShutdownOptions): void;
Parameters
Parameter |
Type |
Description |
---|---|---|
hook | ||
options |
(Optional) |
void