MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / next

Method next

apps/cli/src/agent/events.ts:334–343  ·  view source on GitHub ↗

* Update the value and notify all subscribers.

(value: T)

Source from the content-addressed store, hash-verified

332 * Update the value and notify all subscribers.
333 */
334 next(value: T): void {
335 this.currentValue = value
336 for (const observer of this.observers) {
337 try {
338 observer(value)
339 } catch (error) {
340 console.error("Error in observer:", error)
341 }
342 }
343 }
344
345 /**
346 * Get the current value without subscribing.

Callers 15

updateStateMethod · 0.80
clearMethod · 0.80
streamContentMethod · 0.80
finishStreamMethod · 0.80
nextChunkWithAbortMethod · 0.80
attemptApiRequestMethod · 0.80
Task.spec.tsFile · 0.80
requesty.spec.tsFile · 0.80

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected