Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7534969
test_promise_resolve.cjs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
297 B
Referenced Files
None
Subscribers
None
test_promise_resolve.cjs
View Options
async function test() {
await new Promise(resolve => setTimeout(resolve, 50));
return "result";
}
console.log("Calling async function");
const p = test();
console.log("Promise returned:", typeof p);
p.then(r => console.log("Then callback:", r));
setTimeout(() => console.log("Done"), 100);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 17, 11:58 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
523855
Default Alt Text
test_promise_resolve.cjs (297 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment