decord/source/modules/app_startup/native/executeRunnable.tsx

39 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 17261
// Function ID: 17262
2026-07-20 16:05:17 +00:00
// Name: executeRunnable
// Dependencies: [5, 17262, 3, 13693, 7771, 15, 9, 10, 504, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 17261 (executeRunnable)
import LoggerDefault from "Logger" /* 3 */;
import RequestGatewaySocketAll from "RequestGatewaySocket" /* 7771 */;
import PauseGatewaySocketAll from "PauseGatewaySocket" /* 13693 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
const require = fn;
const NativeAppStartup = fn(17262);
({ init: hasOwnProperty, applicationReady: metroRequire } = NativeAppStartup);
const size = fn(2);
const result = size.fileFinishedImporting("modules/app_startup/native/executeRunnable.tsx");
2026-07-20 16:05:17 +00:00
export default function executeRunnable(arg0, arg1) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
importDefault = arg1;
new LoggerDefault(arg0).log("Loading the " + arg0 + " Discord runnable");
const obj = new LoggerDefault(arg0);
PauseGatewaySocketAll.setIsPaused(false);
2026-07-20 16:05:17 +00:00
const combined = "executeRunnable:" + arg0;
return RequestGatewaySocketAll.withRequest(combined, asyncGeneratorStep(async () => {
closure_0(15).identifyWebSocket();
const init = closure_1(9).init;
await init.measureAsync(closure_1_5);
await promise.promise;
2026-08-04 21:03:28 +00:00
const _HermesInternal = HermesInternal;
v2(7771).startBridgeTo("AppContainer:" + closure_129_0.toLowerCase());
return closure_1(10).time("\u{1F3C3}", "Run", () => {
const Emitter = closure_1(c3[8]).Emitter;
return Emitter.batched(closure_1_1);
2026-08-04 21:03:28 +00:00
});
2026-07-29 08:29:29 +00:00
}));
2026-07-20 16:05:17 +00:00
};