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

Function requestHostTimeout

packages/scheduler/src/forks/Scheduler.js:556–564  ·  view source on GitHub ↗
(
  callback: (currentTime: number) => void,
  ms: number,
)

Source from the content-addressed store, hash-verified

554}
555
556function requestHostTimeout(
557 callback: (currentTime: number) => void,
558 ms: number,
559) {
560 // $FlowFixMe[not-a-function] nullable value
561 taskTimeoutID = localSetTimeout(() => {
562 callback(getCurrentTime());
563 }, ms);
564}
565
566function cancelHostTimeout() {
567 // $FlowFixMe[not-a-function] nullable value

Callers 3

handleTimeoutFunction · 0.70
workLoopFunction · 0.70

Calls 2

getCurrentTimeFunction · 0.70
callbackFunction · 0.50

Tested by

no test coverage detected