Files
discord-decomp/modules/app_startup/native/executeRunnable.tsx
T
2026-11-01 12:12:55 +02:00

27 lines
1.1 KiB
TypeScript

// Metro module 16046 (f16047).
import { applicationReady, init } from "./NativeAppStartup";
import Logger from "../../debug/Logger";
import { setIsPaused } from "../../gateway/PauseGatewaySocket";
import { withRequest, startBridgeTo } from "../../gateway/RequestGatewaySocket";
import { identifyWebSocket } from "../../gateway/native/fast_connect";
import TTITracker from "../../tti_analytics/TTITracker";
import Module10 from "../../../_bundle/Module10";
import Module589 from "../../../_bundle/Module589";
function $mk117152($env) {
return () => Module589.Emitter.batched(c22760_1);
}
export default function executeRunnable(a0, c22760_1) {
new Logger(a0).log(`Loading the ${a0} Discord runnable`);
setIsPaused(false);
return withRequest(`executeRunnable:${a0}`, async () => {
const r29 = void 0;
let c28210_1 = r29;
let c28210_0 = r29;
identifyWebSocket();
await TTITracker.init.measureAsync(init);
await applicationReady.promise;
startBridgeTo(`AppContainer:${a0.toLowerCase()}`);
return Module10.time("🏃", "Run", $mk117152(c28210_0));
});
};