MCPcopy Create free account
hub / github.com/microsoft/SandDance / _flushCallback

Function _flushCallback

docs/external/js/react.development.js:2068–2082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2066 var _timeoutID = null;
2067
2068 var _flushCallback = function () {
2069 if (_callback !== null) {
2070 try {
2071 var currentTime = getCurrentTime();
2072 var hasRemainingTime = true;
2073
2074 _callback(hasRemainingTime, currentTime);
2075
2076 _callback = null;
2077 } catch (e) {
2078 setTimeout(_flushCallback, 0);
2079 throw e;
2080 }
2081 }
2082 };
2083
2084 var initialTime = Date.now();
2085

Callers

nothing calls this directly

Calls 1

getCurrentTimeFunction · 0.85

Tested by

no test coverage detected