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

Function wake

packages/react-devtools-timeline/src/timelineCache.js:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 };
69
70 const wake = () => {
71 // This assumes they won't throw.
72 callbacks.forEach(callback => callback((thenable: any).value));
73 callbacks.clear();
74 rejectCallbacks.clear();
75 };
76 const wakeRejections = () => {
77 // This assumes they won't throw.
78 rejectCallbacks.forEach(callback => callback((thenable: any).reason));

Callers 1

importFileFunction · 0.70

Calls 3

forEachMethod · 0.65
callbackFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected