In Node.js, the process.on('exit', handler) event listener can only perform synchronous operations and cannot perform __________.
- Asynchronous operations
- I/O operations
- Synchronous operations
- Blocking operations
The process.on('exit', handler) event listener in Node.js can only perform synchronous operations because the event is emitted when the Node.js process is about to exit, and it's not suitable for asynchronous or blocking operations.
Loading...
Related Quiz
- In Express.js, to handle errors in asynchronous functions, you should pass errors to ______.
- When defining dynamic routes in Express.js, using :param* will match ______ in the route path.
- What is the primary benefit of implementing a Write-Through caching strategy?
- What is the significance of the order in which middlewares are defined in Express.js?
- In a token-based authentication system, using a ______ approach helps in reducing the risk of token interception and replay attacks.