MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / waitForScrollIdle

Function waitForScrollIdle

src/bootstrap/state.ts:800–806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

798 * coincide with scroll. Resolves immediately if not scrolling; otherwise
799 * polls at the idle interval until the flag clears. */
800export async function waitForScrollIdle(): Promise<void> {
801 while (scrollDraining) {
802 // bootstrap-isolation forbids importing sleep() from src/utils/
803 // eslint-disable-next-line no-restricted-syntax
804 await new Promise(r => setTimeout(r, SCROLL_DRAIN_IDLE_MS).unref?.())
805 }
806}
807
808export function getModelUsage(): { [modelName: string]: ModelUsage } {
809 return STATE.modelUsage

Callers 2

onHeadChangedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected