decord/source/modules/app_startup/awaitExperiments.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

30 lines
833 B
TypeScript

// Module ID: 14105
// Function ID: 14106
// Name: future
// Dependencies: [9222, 2]
// Exports: beginLoadedExperimentsTimeout, getPromise, onExperimentsLoaded
// Module 14105 (future)
import set from "set" /* 2 */;
import Future from "Future" /* 9222 */;
const future = new Future.Future();
let c1 = null;
const result = set.fileFinishedImporting("modules/app_startup/awaitExperiments.tsx");
export const beginLoadedExperimentsTimeout = function beginLoadedExperimentsTimeout() {
const timeout = setTimeout(() => {
closure_0.resolve();
c1 = null;
}, 1000);
};
export const onExperimentsLoaded = function onExperimentsLoaded() {
if (null != c1) {
future.resolve();
const _clearTimeout = clearTimeout;
clearTimeout(c1);
}
};
export const getPromise = function getPromise() {
return future.promise;
};