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

Function wake

packages/ai-client/src/connection-adapters.ts:676–679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

674 let onAbort: (() => void) | undefined
675
676 const wake = () => {
677 const waiter = waiters.shift()
678 waiter?.()
679 }
680
681 const enqueueDelta = () => {
682 if (xhr.status !== 0 && (xhr.status < 200 || xhr.status >= 300)) {

Callers 5

finishFunction · 0.85
readXhrLinesFunction · 0.85
wakeQueuedSubscriberFunction · 0.85
signalReadyFunction · 0.85

Calls

no outgoing calls

Tested by 1

wakeQueuedSubscriberFunction · 0.68