MCPcopy Create free account
hub / github.com/adobe/react-spectrum / busy

Function busy

perf/app/measure.ts:117–122  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

115const calibrationMode = params.get('delayMode');
116
117function busy(ms: number) {
118 let end = performance.now() + ms;
119 while (performance.now() < end) {
120 // Deliberately block the main thread.
121 }
122}
123
124const eventTimingSupported = PerformanceObserver.supportedEntryTypes.includes('event');
125if (eventTimingSupported) {

Callers 2

tickFunction · 0.85
startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected