decord/source/modules/app_startup/awaitExperiments.tsx

31 lines
833 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13648
// Function ID: 13649
2026-07-20 16:05:17 +00:00
// Name: future
2026-08-25 06:04:03 +00:00
// Dependencies: [8497, 2]
2026-07-20 16:05:17 +00:00
// Exports: beginLoadedExperimentsTimeout, getPromise, onExperimentsLoaded
2026-08-25 06:04:03 +00:00
// Module 13648 (future)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-08-25 06:04:03 +00:00
import Future from "Future" /* 8497 */;
2026-08-24 06:08:38 +00:00
const future = new Future.Future();
2026-07-23 10:11:24 +00:00
let c1 = null;
2026-08-24 06:08:38 +00:00
const result = 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();
2026-08-24 06:08:38 +00:00
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;
};