MCPcopy Create free account
hub / github.com/xerrors/Yuxi / getThreadControllers

Function getThreadControllers

web/src/composables/useStreamSmoother.js:240–245  ·  view source on GitHub ↗
(threadId)

Source from the content-addressed store, hash-verified

238 const controllersByThread = new Map()
239
240 const getThreadControllers = (threadId) => {
241 if (!controllersByThread.has(threadId)) {
242 controllersByThread.set(threadId, new Map())
243 }
244 return controllersByThread.get(threadId)
245 }
246
247 const emitDelta = (threadId, messageId, forceFlush = false) => {
248 const threadState = getThreadState(threadId)

Callers 1

pushChunkFunction · 0.85

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected