MCPcopy 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
15function promiseThen() {
16 return Promise.resolve()
17 .then(() => {
18 als.enterWith('inside then');
19 });
20}
21
22async function asyncFunctionBeforeAwait() {
23 als.enterWith('before await');

Callers 1

mainFunction · 0.85

Calls 3

thenMethod · 0.45
resolveMethod · 0.45
enterWithMethod · 0.45

Tested by

no test coverage detected