-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patha-eventloop.txt
More file actions
21 lines (19 loc) · 1.55 KB
/
a-eventloop.txt
File metadata and controls
21 lines (19 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
┌───────────────────────┐
┌─>│ timers │ setTimeout, setInterval
│ └──────────┬────────────┘
│ ┌──────────┴────────────┐
│ │ I/O callbacks │ callback except close and timers
│ └──────────┬────────────┘
│ ┌──────────┴────────────┐
│ │ idle, prepare │ internal use
│ └──────────┬────────────┘ ┌───────────────┐
│ ┌──────────┴────────────┐ │ incoming: │
│ │ poll │<─────┤ connections, │
│ └──────────┬────────────┘ │ data, etc. │
│ ┌──────────┴────────────┐ └───────────────┘
│ │ check │ setImmediate
│ └──────────┬────────────┘
│ ┌──────────┴────────────┐
└──┤ close callbacks │ .on('close', ...)
└───────────────────────┘
Copyright (c) Node contributors