MCPcopy
hub / github.com/claude-code-best/claude-code / push

Method push

src/services/acp/utils.ts:19–26  ·  view source on GitHub ↗
(item: T)

Source from the content-addressed store, hash-verified

17 private done = false
18
19 push(item: T) {
20 if (this.resolvers.length > 0) {
21 const resolve = this.resolvers.shift()!
22 resolve({ value: item, done: false })
23 } else {
24 this.queue.push(item)
25 }
26 }
27
28 end() {
29 this.done = true

Callers 15

confirmPairingFunction · 0.45
sendMediaFileFunction · 0.45
getAllToolsMethod · 0.45
collectEventsFunction · 0.45
collectEventsFunction · 0.45
keystrokeToStringFunction · 0.45
keystrokeToDisplayStringFunction · 0.45

Calls 2

shiftMethod · 0.80
resolveFunction · 0.50

Tested by 15

collectEventsFunction · 0.36
collectEventsFunction · 0.36
onProgressFunction · 0.36
onProgressFunction · 0.36
onProgressFunction · 0.36
makeMockToolWithSchemaFunction · 0.36
innerRenderFunction · 0.36
makeTestWsFunction · 0.36
mockPortsFunction · 0.36
initializeFunction · 0.36
disposeFunction · 0.36
buildCtxFunction · 0.36