-
Notifications
You must be signed in to change notification settings - Fork 1
/
node.html
39 lines (36 loc) · 1.37 KB
/
node.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Node Event Loop</title>
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/common.css">
<link rel="import" href="components/event-loop.html">
<link rel="import" href="components/browser.html">
<link rel="import" href="components/node-queues.html">
<link rel="import" href="components/rendering-pipeline.html">
<link rel="import" href="components/node-selector.html">
<link rel="import" href="components/queue.html">
<link rel="import" href="components/task-source.html">
</head>
<body>
<event-loop>
<div class="sources">
<task-source type="timer"></task-source>
<task-source type="network"></task-source>
<task-source type="drive"></task-source>
<task-source type="immediate"></task-source>
<task-source type="promise"></task-source>
<task-source type="next-tick"></task-source>
</div>
<node-queues>
<task-queue></task-queue>
<task-queue type="immediate"></task-queue>
<task-queue type="timer"></task-queue>
<task-queue type="microtask"></task-queue>
<task-queue type="next-tick"></task-queue>
</node-queues>
</event-loop>
</body>
</html>