MCPcopy Create free account
hub / github.com/bytebase/bytebase / progressiveDelay

Function progressiveDelay

frontend/src/react/components/monaco/utils.ts:115–122  ·  view source on GitHub ↗
(serial: number)

Source from the content-addressed store, hash-verified

113};
114
115export const progressiveDelay = (serial: number) => {
116 if (serial === 0) return 0;
117 return minmax(
118 RECONNECTION_DELAY.min * Math.pow(RECONNECTION_DELAY.growth, serial - 1),
119 RECONNECTION_DELAY.min,
120 RECONNECTION_DELAY.max
121 );
122};
123
124export const positionWithOffset = (
125 line: number,

Callers 1

connectFunction · 0.90

Calls 1

minmaxFunction · 0.90

Tested by

no test coverage detected