Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4503133
test_immediate_concurrent.cjs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
test_immediate_concurrent.cjs
View Options
// Test with IMMEDIATELY resolved promises (should work)
console.log("=== Immediate Promises Test ===");
async function func1() {
console.log("func1: start");
const result = await Promise.resolve("func1_result");
console.log("func1: after await, result:", result);
return result;
}
async function func2() {
console.log("func2: start");
const result = await Promise.resolve("func2_result");
console.log("func2: after await, result:", result);
return result;
}
func1().then(r => console.log("func1 final:", r));
func2().then(r => console.log("func2 final:", r));
console.log("=== Both called ===");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 9:22 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
522794
Default Alt Text
test_immediate_concurrent.cjs (617 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment