Asynchronous Processing

Event Loop

English

Overview

A mechanism that pulls queued events one at a time to drive processing forward.

Details

A mechanism that pulls events and callbacks that have queued up and processes them in order, forming the foundation of JavaScript's asynchronous processing. In a single-threaded environment like JavaScript, the event loop only pulls the next item from the queue after finishing the current task, so a single long-running operation blocks and delays every other pending event.

More Programming terms