MCPcopy
hub / github.com/facebook/react / then

Function then

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js:370–376  ·  view source on GitHub ↗
(resolve)

Source from the content-addressed store, hash-verified

368 const thenable = {
369 pings: [],
370 then(resolve) {
371 if (newRecord.status === 'pending') {
372 thenable.pings.push(resolve);
373 } else {
374 Promise.resolve().then(() => resolve(newRecord.value));
375 }
376 },
377 };
378
379 const newRecord = {

Callers

nothing calls this directly

Calls 5

resolveFunction · 0.70
pushMethod · 0.65
thenMethod · 0.65
callbackFunction · 0.50
cbFunction · 0.50

Tested by

no test coverage detected