MCPcopy Index your code
hub / github.com/nodejs/node / post

Function post

test/parallel/test-inspector-tracing-domain.js:19–28  ·  view source on GitHub ↗
(message, data)

Source from the content-addressed store, hash-verified

17const session = new Session();
18
19function post(message, data) {
20 return new Promise((resolve, reject) => {
21 session.post(message, data, (err, result) => {
22 if (err)
23 reject(new Error(JSON.stringify(err)));
24 else
25 resolve(result);
26 });
27 });
28}
29
30function generateTrace() {
31 return new Promise((resolve) => setTimeout(() => {

Callers 6

testFunction · 0.70
testBasicWorkerDebugFunction · 0.70
testNoWaitOnStartFunction · 0.70
testTwoWorkersFunction · 0.70

Calls 3

rejectFunction · 0.50
resolveFunction · 0.50
postMethod · 0.45

Tested by 1

testFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…