Commit 4a7233c
lib: implement async_hooks API in core
Implement async_hooks support in the following:
* fatalException handler
* process.nextTick
* Timers
* net/dgram/http
PR-URL: #12892
Ref: #11883
Ref: #8531
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>1 parent 7e3a3c9 commit 4a7233cCopy full SHA for 4a7233c
File tree
Expand file treeCollapse file tree
13 files changed
+399
-40
lines changedOpen diff view settings
Filter options
- lib
- internal
- process
- src
- test
- message
- parallel
Expand file treeCollapse file tree
13 files changed
+399
-40
lines changedOpen diff view settings
Collapse file
+7-2Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
| 28 | + |
| 29 | + |
28 | 30 | |
29 | 31 | |
30 | 32 | |
| ||
93 | 95 | |
94 | 96 | |
95 | 97 | |
| 98 | + |
96 | 99 | |
97 | 100 | |
98 | 101 | |
| ||
163 | 166 | |
164 | 167 | |
165 | 168 | |
| 169 | + |
| 170 | + |
166 | 171 | |
167 | 172 | |
168 | 173 | |
| ||
177 | 182 | |
178 | 183 | |
179 | 184 | |
180 | | - |
| 185 | + |
181 | 186 | |
182 | 187 | |
183 | 188 | |
| ||
290 | 295 | |
291 | 296 | |
292 | 297 | |
293 | | - |
| 298 | + |
294 | 299 | |
295 | 300 | |
296 | 301 | |
|
Collapse file
+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
39 | 40 | |
40 | 41 | |
41 | 42 | |
| ||
587 | 588 | |
588 | 589 | |
589 | 590 | |
| 591 | + |
| 592 | + |
| 593 | + |
590 | 594 | |
591 | 595 | |
592 | | - |
| 596 | + |
593 | 597 | |
594 | 598 | |
595 | 599 | |
|
Collapse file
+7-1Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
| 31 | + |
31 | 32 | |
32 | 33 | |
33 | 34 | |
| ||
211 | 212 | |
212 | 213 | |
213 | 214 | |
214 | | - |
| 215 | + |
215 | 216 | |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
216 | 222 | |
217 | 223 | |
218 | 224 | |
|
Collapse file
+9-3Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
| 34 | + |
| 35 | + |
34 | 36 | |
35 | 37 | |
36 | 38 | |
| ||
264 | 266 | |
265 | 267 | |
266 | 268 | |
267 | | - |
268 | | - |
| 269 | + |
| 270 | + |
| 271 | + |
269 | 272 | |
270 | 273 | |
271 | 274 | |
| ||
623 | 626 | |
624 | 627 | |
625 | 628 | |
626 | | - |
| 629 | + |
| 630 | + |
| 631 | + |
| 632 | + |
627 | 633 | |
628 | 634 | |
629 | 635 | |
|
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | 38 | |
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
| 44 | + |
| 45 | + |
44 | 46 | |
45 | | - |
46 | | - |
47 | 47 | |
48 | 48 | |
49 | 49 | |
|
Collapse file
+10-2Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
| 28 | + |
28 | 29 | |
| 30 | + |
| 31 | + |
29 | 32 | |
30 | 33 | |
31 | 34 | |
| ||
111 | 114 | |
112 | 115 | |
113 | 116 | |
| 117 | + |
114 | 118 | |
115 | 119 | |
116 | 120 | |
| ||
432 | 436 | |
433 | 437 | |
434 | 438 | |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
435 | 443 | |
436 | 444 | |
437 | 445 | |
| ||
441 | 449 | |
442 | 450 | |
443 | 451 | |
444 | | - |
| 452 | + |
445 | 453 | |
446 | 454 | |
447 | 455 | |
| ||
468 | 476 | |
469 | 477 | |
470 | 478 | |
471 | | - |
| 479 | + |
472 | 480 | |
473 | 481 | |
474 | 482 | |
|
Collapse file
lib/internal/bootstrap_node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap_node.js+23-1Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
292 | 292 | |
293 | 293 | |
294 | 294 | |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
295 | 301 | |
296 | 302 | |
297 | 303 | |
298 | 304 | |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
299 | 309 | |
300 | 310 | |
301 | 311 | |
| ||
314 | 324 | |
315 | 325 | |
316 | 326 | |
317 | | - |
318 | 327 | |
| 328 | + |
319 | 329 | |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
320 | 342 | |
321 | 343 | |
322 | 344 | |
|
0 commit comments