chore(deadcode): remove unused main-lane queue wrapper

This commit is contained in:
Vincent Koc
2026-06-22 15:18:05 +08:00
parent c57fee8239
commit f1c6057cd7
2 changed files with 13 additions and 22 deletions
+1 -8
View File
@@ -4,8 +4,8 @@ import {
logLaneDequeue,
logLaneEnqueue,
} from "../logging/diagnostic-runtime.js";
import { clampPositiveTimerTimeoutMs } from "../shared/number-coercion.js";
import { resolveGlobalSingleton } from "../shared/global-singleton.js";
import { clampPositiveTimerTimeoutMs } from "../shared/number-coercion.js";
import type { CommandQueueEnqueueOptions } from "./command-queue.types.js";
import { CommandLane } from "./lanes.js";
/**
@@ -507,13 +507,6 @@ export function enqueueCommandInLane<T>(
});
}
export function enqueueCommand<T>(
task: () => Promise<T>,
opts?: CommandQueueEnqueueOptions,
): Promise<T> {
return enqueueCommandInLane(CommandLane.Main, task, opts);
}
export function getQueueSize(lane: string = CommandLane.Main) {
const resolved = normalizeLane(lane);
const state = getQueueState().lanes.get(resolved);