Files
discord-decomp/modules/app_startup/PostTTIScheduler/SafePostTTIScheduler.tsx
T
2026-11-01 12:12:55 +02:00

15 lines
368 B
TypeScript

// Metro module 5952 (f5953).
import { schedulePostTTIEvent } from "./PostTTIScheduler";
export function waitSafelyForPostTTI(r3 = 4000) {
let c15319_0 = r3;
return new Promise((c25659_0) => {
let c25659_1 = setTimeout(() => {
c25659_0();
}, c15319_0);
schedulePostTTIEvent(() => {
clearTimeout(c25659_1);
c25659_0();
});
});
}