• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

worktile / slate-angular / 2241d398-cf7c-4f79-b1b3-923ba1e05d17

11 Jul 2025 07:46AM UTC coverage: 48.44%. Remained the same
2241d398-cf7c-4f79-b1b3-923ba1e05d17

push

circleci

pubuzhixing8
build: release 19.1.0-next.3

364 of 925 branches covered (39.35%)

Branch coverage included in aggregate %.

940 of 1767 relevant lines covered (53.2%)

44.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

7.69
/packages/src/utils/throttle.ts
1
export const createThrottleRAF = () => {
1✔
2
    let timerId: number | null = null;
×
3
    const throttleRAF = (fn: () => void) => {
×
4
        const scheduleFunc = () => {
×
5
            timerId = requestAnimationFrame(() => {
×
6
                timerId = null;
×
7
                fn();
×
8
            });
9
        };
10
        if (timerId !== null) {
×
11
            cancelAnimationFrame(timerId);
×
12
            timerId = null;
×
13
        }
14
        scheduleFunc();
×
15
    };
16
    return throttleRAF;
×
17
};
18

19
export type ThrottleRAF = (fn: () => void) => void;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc