Controlling Process Execution with the process Module

The process module gives you some control over the execution of processes. Specifically, it enables you to stop the current process, kill another process, or schedule work to run on the event queue. For example, to exit the current Node.js process, you would use:

process.exit(0)

Table 9.2 lists the process control methods that are available in the process module.

Image

Table 9.2 Methods that can be called on the process module to affect process execution

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.208.181