MCPcopy
hub / github.com/TanStack/ai / wakeQueuedSubscriber

Function wakeQueuedSubscriber

packages/ai-client/tests/chat-client.test.ts:542–546  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

540 let staleReleased = false
541 let wakeSubscriber: (() => void) | null = null
542 const wakeQueuedSubscriber = () => {
543 const wake = wakeSubscriber
544 wakeSubscriber = null
545 wake?.()
546 }
547 const adapter: ConnectionAdapter = {
548 subscribe: vi.fn(
549 (_signal?: AbortSignal): AsyncIterable<StreamChunk> => {

Callers 1

Calls 1

wakeFunction · 0.85

Tested by

no test coverage detected