pub fn set_exit_code(code: i32)Expand description
Set only the exit code without requesting an exit.
Backs the process.exitCode property setter: assigning the property alone
steers the final exit code (honoured on natural exit and by ‘exit’
listeners), while the process keeps running until the event loop drains
or process.exit() is called — Node semantics.