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

Method queuePostStreamAction

packages/ai-client/src/chat-client.ts:1303–1305  ·  view source on GitHub ↗

* Queue an action to be executed after the current stream ends

(action: () => Promise<void>)

Source from the content-addressed store, hash-verified

1301 * Queue an action to be executed after the current stream ends
1302 */
1303 private queuePostStreamAction(action: () => Promise<void>): void {
1304 this.postStreamActions.push(action)
1305 }
1306
1307 /**
1308 * Drain and execute all queued post-stream actions

Callers 3

appendMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected