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

Function scheduleWork

packages/react-server/src/ReactServerStreamConfigBrowser.js:25–28  ·  view source on GitHub ↗
(callback: () => void)

Source from the content-addressed store, hash-verified

23};
24
25export function scheduleWork(callback: () => void) {
26 taskQueue.push(callback);
27 channel.port2.postMessage(null);
28}
29
30function handleErrorInNextTick(error: any) {
31 setTimeout(() => {

Callers

nothing calls this directly

Calls 2

postMessageMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected