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

Function start

packages/react-dom/src/__tests__/ReactDOMFizzStaticBrowser-test.js:78–100  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

76 const readerB = streamB.getReader();
77 return new ReadableStream({
78 start(controller) {
79 function readA() {
80 readerA.read().then(({done, value}) => {
81 if (done) {
82 readB();
83 return;
84 }
85 controller.enqueue(value);
86 readA();
87 });
88 }
89 function readB() {
90 readerB.read().then(({done, value}) => {
91 if (done) {
92 controller.close();
93 return;
94 }
95 controller.enqueue(value);
96 readB();
97 });
98 }
99 readA();
100 },
101 });
102 }
103

Callers

nothing calls this directly

Calls 1

readAFunction · 0.85

Tested by

no test coverage detected