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

Function post

test/parallel/test-trace-events-dynamic-enable.js:30–39  ·  view source on GitHub ↗
(message, data)

Source from the content-addressed store, hash-verified

28const session = new Session();
29
30function post(message, data) {
31 return new Promise((resolve, reject) => {
32 session.post(message, data, (err, result) => {
33 if (err)
34 reject(new Error(JSON.stringify(err)));
35 else
36 resolve(result);
37 });
38 });
39}
40
41async function test() {
42 session.connect();

Callers 1

testFunction · 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…