MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / push

Method push

src/pkg/utils/queue.ts:7–14  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

5 resolve?: (data: T) => void;
6
7 push(data: T) {
8 if (this.resolve) {
9 this.resolve(data);
10 this.resolve = undefined;
11 } else {
12 this.list.push(data);
13 }
14 }
15
16 pop(): Promise<T | undefined> {
17 return new Promise((resolve) => {

Callers 15

gm_menu_test.jsFile · 0.80
onloadFunction · 0.80
onerrorFunction · 0.80
onabortFunction · 0.80
ontimeoutFunction · 0.80
onloadendFunction · 0.80
runFunction · 0.80
onprogressFunction · 0.80
autoTestFunction · 0.80
manualTestFunction · 0.80

Calls

no outgoing calls

Tested by 15

runFunction · 0.64
handlerFunction · 0.64
runFunction · 0.64
sendMethod · 0.64
createMockWinFunction · 0.64
createMockSenderFunction · 0.64
createMockSenderFunction · 0.64
createMockSenderFunction · 0.64
createMockSenderFunction · 0.64
makeToolCallResponseFunction · 0.64
createMockSenderFunction · 0.64
collectEventsFunction · 0.64