decord/source/modules/app_startup/awaitExperiments.tsx

28 lines
794 B
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13177
// Function ID: 101513
2026-07-20 16:05:17 +00:00
// Name: future
2026-07-25 08:10:48 +00:00
// Dependencies: [5672, 2]
2026-07-20 16:05:17 +00:00
// Exports: beginLoadedExperimentsTimeout, getPromise, onExperimentsLoaded
2026-07-27 11:26:19 +00:00
// Module 13177 (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-23 10:11:24 +00:00
outer1_0.resolve();
2026-07-20 16:05:17 +00:00
let closure_1 = null;
}, 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;
};