decord/source/modules/app_startup/PostTTIScheduler/SafePostTTIScheduler.tsx

28 lines
699 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 5419
// Function ID: 5420
2026-07-20 16:05:17 +00:00
// Name: waitSafelyForPostTTI
2026-08-24 06:08:38 +00:00
// Dependencies: [5420, 2]
2026-07-20 16:05:17 +00:00
// Exports: waitSafelyForPostTTI
2026-08-24 06:08:38 +00:00
// Module 5419 (waitSafelyForPostTTI)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/app_startup/PostTTIScheduler/SafePostTTIScheduler.tsx");
2026-07-20 16:05:17 +00:00
export const waitSafelyForPostTTI = function waitSafelyForPostTTI(arg0) {
let num = arg0;
if (arg0 === undefined) {
num = 4000;
}
return new Promise((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const timeout = setTimeout(() => {
2026-07-23 10:11:24 +00:00
callback();
}, closure_0);
2026-08-24 06:08:38 +00:00
num(closure_1_1[0]).schedulePostTTIEvent(() => {
2026-07-20 16:05:17 +00:00
clearTimeout(closure_1);
2026-07-23 10:11:24 +00:00
callback();
2026-07-20 16:05:17 +00:00
});
});
};