MCPcopy Index your code
hub / github.com/simstudioai/sim / registerPendingChatStream

Function registerPendingChatStream

apps/sim/lib/copilot/request/session/abort.ts:43–49  ·  view source on GitHub ↗
(chatId: string, streamId: string)

Source from the content-addressed store, hash-verified

41}
42
43function registerPendingChatStream(chatId: string, streamId: string): void {
44 let resolve!: () => void
45 const promise = new Promise<void>((r) => {
46 resolve = r
47 })
48 pendingChatStreams.set(chatId, { promise, resolve, streamId })
49}
50
51function resolvePendingChatStream(chatId: string, streamId: string): void {
52 const entry = pendingChatStreams.get(chatId)

Callers 1

acquirePendingChatStreamFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected