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

Function createProgressBus

src/workflow/progress/bus.ts:9–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9export function createProgressBus(): ProgressBus {
10 const listeners = new Set<(event: ProgressEvent) => void>()
11 return {
12 emit(event) {
13 for (const fn of listeners) fn(event)
14 },
15 subscribe(listener) {
16 listeners.add(listener)
17 return () => listeners.delete(listener)
18 },
19 }
20}

Callers 6

getWorkflowServiceFunction · 0.85
fakePortsFunction · 0.85
ports.test.tsFile · 0.85
newStoreFunction · 0.85

Calls

no outgoing calls

Tested by 2

fakePortsFunction · 0.68
newStoreFunction · 0.68