Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ promiseThen
Function
promiseThen
test/parallel/test-async-local-storage-enter-with.js:15–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
}
14
15
function
promiseThen() {
16
return
Promise.resolve()
17
.then(() => {
18
als.enterWith(
'inside then'
);
19
});
20
}
21
22
async
function
asyncFunctionBeforeAwait() {
23
als.enterWith(
'before await'
);
Callers
1
main
Function · 0.85
Calls
3
then
Method · 0.45
resolve
Method · 0.45
enterWith
Method · 0.45
Tested by
no test coverage detected