Skip to content

process: add isExiting

This replaces the previously undocumented _exiting property with a read-only property giving the same information. Setting the property is restricted to internals, to prevent tampering. Tampering could affect nextTick behavior, for example.

Twitter thread for context: https://twitter.com/bengl/status/922361992379166721

It may or may not make sense to keep _exiting around as an alias, if there's userland code using it. That's easy enough to do if reviewers would like that.

/cc @addaleax @trott

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

process

Merge request reports

Loading