Skip to content

Does worker.terminate() always return code 1? #3193

@shadowgate15

Description

@shadowgate15
  • Node.js Version: v12.20.0
  • OS: macOS
  • Scope (install, code, runtime, meta, other?): runtime/code
  • Module (and version) (if relevant): Worker

When worker.terminate() is called, in particular from the main thread, should it always return an exitCode of 1? Or are there situations in which it would return 0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions