-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadMe.html
74 lines (71 loc) · 1.62 KB
/
readMe.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Promises & Async</title>
</head>
<body>
<h3>Promises & Async</h3>
<ul>
<li>
States
<ul>
<li>Pending</li>
<li>Fulfilled</li>
<li>Rejected</li>
<li>
*Settled / Resolved > either in Fulfilled or Rejected state no
longer Pending
</li>
</ul>
</li>
<li>Readable asychronous code</li>
<li>Promises are NOT lazy</li>
<li>Promises return Promises - Chaining</li>
<li>
Consuming
<ul>
<li>get</li>
<li>getCatch</li>
<li>chain</li>
<li>chainCatch</li>
<li>final</li>
</ul>
</li>
<li>
Creating
<ul>
<li>timeout</li>
<li>interval</li>
<li>clearIntervalChain</li>
<li>xhr</li>
<li>allPromises</li>
<li>allSettled</li>
<li>race</li>
</ul>
</li>
<li>
Async/Await is syntatic suger
<ul>
<li>async - return value is wrapped in a promise</li>
<li>await - must be used inside of async</li>
<li>await - only bloks current function</li>
</ul>
</li>
<li>
iterating
<ul>
<li>get</li>
<li>getCatch</li>
<li>chain</li>
<li>concurrent</li>
<li>parallel</li>
</ul>
</li>
</ul>
<script>
"use strict";
</script>
</body>
</html>