menu_book Course Curriculum (Node.js) expand_more
Runtime & Modules
Filesystem
Paths & URLs
Events & Buffers
HTTP
Async & Processes
Testing & Diagnostics
Graceful shutdown
Learn Graceful shutdown in Node.js with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Advanced
nodejs-057.js
javascript
const server=app.listen(3000); process.on("SIGTERM",()=>server.close(err=>process.exit(err?1:0)));
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content