MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / waitForScrollIdle

Function waitForScrollIdle

source code/bootstrap/state.ts:820–826  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

818 * coincide with scroll. Resolves immediately if not scrolling; otherwise
819 * polls at the idle interval until the flag clears. */
820export async function waitForScrollIdle(): Promise<void> {
821 while (scrollDraining) {
822 // bootstrap-isolation forbids importing sleep() from src/utils/
823 // eslint-disable-next-line no-restricted-syntax
824 await new Promise(r => setTimeout(r, SCROLL_DRAIN_IDLE_MS).unref?.())
825 }
826}
827
828export function getModelUsage(): { [modelName: string]: ModelUsage } {
829 return STATE.modelUsage

Callers 2

onHeadChangedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected