Fix missing signal (#34002)

This commit is contained in:
Paul Hawxby
2019-03-25 09:40:35 -07:00
committed by Sheetal Nandi
parent 9bd3605eea
commit 71c0e59b29
2 changed files with 3 additions and 3 deletions
@@ -6,8 +6,8 @@ const opts: GracefulShutdown.Options = {
signals: "SIGINT SIGTERM",
timeout: 1337,
development: false,
onShutdown: () => {
console.log('fake shutdown handler');
onShutdown: (signal) => {
console.log('fake shutdown handler', signal);
return Promise.resolve();
},
finally: () => {
+1 -1
View File
@@ -15,7 +15,7 @@ declare namespace GracefulShutdown {
signals?: string;
timeout?: number;
development?: boolean;
onShutdown?: () => Promise<void>;
onShutdown?: (signal: string) => Promise<void>;
finally?: () => void;
}
}