Closed vprasanth closed 5 years ago
Can you illustrate what do you mean?
Shutdown is a custom function that you provide yourself.
Sure
lightship.registerShutdownHandler((msg) => {
console.log(msg);
// do some task
});
// some error scenario
if (err) {
lightship.shutdown(err);
}
Perhaps I misunderstood what registerShutdownHandler
does. Perhaps it's just a way to setup multiple functions to be executed when shutdown()
is called. I was thinking I could also pass parameters to those functions
it's just a way to setup multiple functions to be executed when shutdown() is called
That^
I assumed I could, but looks like I can't. I send a PR if you like.