RootLifecycleService.addBeforeShutdownHook()
Home > @backstage/backend-plugin-api
> RootLifecycleService
> addBeforeShutdownHook
Signature:
addBeforeShutdownHook(hook: () => void | Promise<void>): void;
Parameters
Parameter |
Type |
Description |
---|---|---|
hook |
() => void | Promise<void> |
void