decord/source/modules/app_startup/awaitExperiments.tsx

28 lines
787 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 13331
// Function ID: 13332
2026-07-20 16:05:17 +00:00
// Name: future
2026-08-05 07:35:12 +00:00
// Dependencies: [8125, 2]
2026-07-20 16:05:17 +00:00
// Exports: beginLoadedExperimentsTimeout, getPromise, onExperimentsLoaded
2026-08-05 07:35:12 +00:00
// Module 13331 (future)
2026-07-23 10:11:24 +00:00
const future = new require("Future").Future();
let c1 = null;
const result = require("set").fileFinishedImporting("modules/app_startup/awaitExperiments.tsx");
2026-07-20 16:05:17 +00:00
export const beginLoadedExperimentsTimeout = function beginLoadedExperimentsTimeout() {
const timeout = setTimeout(() => {
2026-07-29 08:29:29 +00:00
closure_0.resolve();
let c1 = null;
2026-07-20 16:05:17 +00:00
}, 1000);
};
export const onExperimentsLoaded = function onExperimentsLoaded() {
2026-07-23 10:11:24 +00:00
if (null != c1) {
2026-07-20 16:05:17 +00:00
future.resolve();
const _clearTimeout = clearTimeout;
2026-07-23 10:11:24 +00:00
clearTimeout(c1);
2026-07-20 16:05:17 +00:00
}
};
export const getPromise = function getPromise() {
return future.promise;
};