Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4504607
test_debug_await.cjs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
392 B
Referenced Files
None
Subscribers
None
test_debug_await.cjs
View Options
async function test() {
console.log("1: Before await");
const x = await new Promise(resolve => setTimeout(() => {
console.log("2: Timer callback");
resolve("VALUE");
}, 10));
console.log("3: x assigned, x =", x);
console.log("4: About to return");
return x;
}
console.log("A: Calling test");
test().then(r => console.log("Final:", r));
console.log("B: After test call");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 9:55 AM (20 m, 47 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
523620
Default Alt Text
test_debug_await.cjs (392 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment