save events

This commit is contained in:
thomasabishop 2024-02-19 08:28:35 +00:00
parent 86a79ef0a4
commit 506aecf4d5

View file

@ -1,4 +1,6 @@
---
id: events
aliases: []
tags:
- backend
- node-js
@ -15,12 +17,10 @@ Another way of putting this is to say that all events in Node inherit from the
event. At bottom everything in Node is an event with a callback, created via
event emitters.
Because Node's runtime is
[event-driven](Event_loop.md), it is
event-emitter cycles that are being processed by the Event Loop, although you
may know them as `fs` or `http` (etc) events. The call stack that the Event Loop
works through is just a series of event emissions and their associated
callbacks.
Because Node's runtime is [event-driven](Event_loop.md), it is event-emitter
cycles that are being processed by the Event Loop, although you may know them as
`fs` or `http` (etc) events. The call stack that the Event Loop works through is
just a series of event emissions and their associated callbacks.
## Event Emitters