Skip to content

Cleanup handlers #7

@issacg

Description

@issacg

exit can't be used to flush the logs, as you can't run async stuff there

https://nodejs.org/docs/v4.2.4/api/process.html#process_event_exit

beforeExit can run async stuff, but might yield false positives (if stuff causes the event loop to fire up again) and won't necessarily be called on hard shutdowns (process.exit() or uncaught exceptions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions