MCPcopy Create free account
hub / github.com/TanStack/ai / waitForFixtureStep

Function waitForFixtureStep

examples/ts-react-chat/src/routes/generation-hooks.tsx:653–665  ·  view source on GitHub ↗
(abortSignal: AbortSignal | undefined)

Source from the content-addressed store, hash-verified

651}
652
653async function waitForFixtureStep(abortSignal: AbortSignal | undefined) {
654 await new Promise<void>((resolve) => {
655 const timeout = window.setTimeout(resolve, 180)
656 abortSignal?.addEventListener(
657 'abort',
658 () => {
659 window.clearTimeout(timeout)
660 resolve()
661 },
662 { once: true },
663 )
664 })
665}
666
667function runStarted(runId: string, threadId: string): StreamChunk {
668 return {

Callers 1

connectFunction · 0.85

Calls 3

setTimeoutMethod · 0.80
clearTimeoutMethod · 0.80
addEventListenerMethod · 0.45

Tested by

no test coverage detected