Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 940 Bytes

File metadata and controls

21 lines (14 loc) · 940 Bytes

libuv Implements a Reactor Pattern

libuv is Node's low-level I/O engine. Other than abstracting underlying system calls, libuv also implements the Reactor pattern, which also provides an API for:

  • creating event loops,
  • managing the event queue,
  • running async I/O operations, and
  • queueing other tasks

This pattern coordinates:

  1. feeding asynchronous events into the queue,
  2. executing those events as resources become available, and then
  3. popping those events off of the queue to make requests to any callbacks provided by application code.

TODO: