MCPcopy Create free account
hub / github.com/codeaashu/claude-code / subscribe

Function subscribe

src/utils/signal.ts:30–35  ·  view source on GitHub ↗
(listener)

Source from the content-addressed store, hash-verified

28 const listeners = new Set<(...args: Args) => void>()
29 return {
30 subscribe(listener) {
31 listeners.add(listener)
32 return () => {
33 listeners.delete(listener)
34 }
35 },
36 emit(...args) {
37 for (const listener of listeners) listener(...args)
38 },

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected