MCPcopy Index your code
hub / github.com/msgbyte/tianji / flush

Method flush

packages/client-sdk/src/utils/batch-manager.ts:99–108  ·  view source on GitHub ↗

* Flush batch queue manually (send all pending requests immediately)

()

Source from the content-addressed store, hash-verified

97 * Flush batch queue manually (send all pending requests immediately)
98 */
99 async flush(): Promise<void> {
100 if (this.timer) {
101 clearTimeout(this.timer as any);
102 this.timer = null;
103 }
104
105 if (this.queue.length > 0) {
106 await this.sendBatch();
107 }
108 }
109
110 /**
111 * Clear batch queue without sending

Callers 4

addMethod · 0.95
createTrackerCoreFunction · 0.95
flushBatchQueueFunction · 0.45

Calls 1

sendBatchMethod · 0.95

Tested by

no test coverage detected