MCPcopy Index your code
hub / github.com/anomalyco/opencode / emit

Function emit

packages/opencode/src/cli/cmd/run/runtime.queue.ts:69–72  ·  view source on GitHub ↗
(next: FooterEvent, row: Record<string, unknown>)

Source from the content-addressed store, hash-verified

67 let draining: Promise<void> | undefined
68
69 const emit = (next: FooterEvent, row: Record<string, unknown>) => {
70 input.trace?.write("ui.patch", row)
71 input.footer.event(next)
72 }
73
74 const syncQueue = () => {
75 const queue = state.queue.length

Callers 3

syncQueueFunction · 0.70
drainFunction · 0.70
submitFunction · 0.70

Calls 2

writeMethod · 0.80
eventMethod · 0.45

Tested by

no test coverage detected