MCPcopy Index your code
hub / github.com/TanStack/ai / wake

Method wake

packages/ai-sandbox/src/run-log.ts:125–129  ·  view source on GitHub ↗
(state: RunState)

Source from the content-addressed store, hash-verified

123 }
124
125 private wake(state: RunState): void {
126 const waiters = [...state.waiters]
127 state.waiters.clear()
128 for (const resolve of waiters) resolve()
129 }
130
131 // Mutators return a Promise without `async` so contract violations REJECT
132 // (rather than throwing synchronously from a Promise-typed method — a

Callers 4

appendMethod · 0.95
finishMethod · 0.95
use-chat.test.tsFile · 0.45
use-chat.test.tsFile · 0.45

Calls 2

clearMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected