Event

Events are occurrences or actions that a program can respond to. They can be triggered by user actions, system notifications, or program state changes. Frontend (Browser) I/O Event Examples:

Backend I/O Event Examples:

Non-blocking model

The non-blocking model allows a program to initiate I/O operations without waiting for them to complete before moving on to the next task.

Key characteristics:

So what is an event loop

The event loop is a programming construct that waits for and dispatches events in a program. How it works under the hood:

1. Initialization