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

Function withPromiseAndResolved

test/es-module/test-wasm-web-api.js:28–33  ·  view source on GitHub ↗
(makePromise, consume)

Source from the content-addressed store, hash-verified

26// of the promise. We use this to test that the API accepts not just a Response
27// but also a Promise that resolves to a Response.
28function withPromiseAndResolved(makePromise, consume) {
29 return Promise.all([
30 consume(makePromise()),
31 makePromise().then(consume),
32 ]);
33}
34
35// The makeResponsePromise function must return a Promise that resolves to a
36// Response. The checkResult function receives the Promise returned by

Callers 2

testCompileStreamingFunction · 0.85

Calls 3

allMethod · 0.80
consumeFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…