We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8deb9ca commit c06042cCopy full SHA for c06042c
example-3.js
@@ -0,0 +1,27 @@
1
+//
2
+// Run me with --expose-gc
3
4
+// node --expose-gc example.js
5
6
+
7
+const { AsyncDebugger } = require("./lib/async-debugger");
8
9
+console.log("Starting up!");
10
11
+function doTimeout() {
12
+ console.log("Starting timeout.");
13
14
+ setTimeout(() => {
15
16
17
+ console.log("Timeout finished.");
18
+ }, 2000);
19
20
21
+}
22
23
+const asyncDebugger = new AsyncDebugger();
24
+asyncDebugger.notifyComplete(() => console.log("********** All done! **********"));
25
+asyncDebugger.startTracking("test-1", doTimeout);
26
27
+console.log("End of script");
0 commit comments