MCPcopy Create free account
hub / github.com/tiann/hapi / pushQueue

Function pushQueue

cli/src/opencode/opencodeLocalLauncher.ts:79–83  ·  view source on GitHub ↗
(map: Map<string, string[]>, key: string, value: string)

Source from the content-addressed store, hash-verified

77}
78
79function pushQueue(map: Map<string, string[]>, key: string, value: string): void {
80 const queue = map.get(key) ?? [];
81 queue.push(value);
82 map.set(key, queue);
83}
84
85function shiftQueue(map: Map<string, string[]>, key: string): string | null {
86 const queue = map.get(key);

Callers 1

handleHookEventFunction · 0.85

Calls 2

getMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected