MCPcopy
hub / github.com/msgbyte/tianji / sendBatch

Method sendBatch

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

* Send batch request

()

Source from the content-addressed store, hash-verified

82 * Send batch request
83 */
84 private async sendBatch(): Promise<void> {
85 if (this.queue.length === 0) {
86 return;
87 }
88
89 const requestData = [...this.queue];
90 this.queue = [];
91 this.timer = null;
92
93 await this.options.onBatchSend(requestData);
94 }
95
96 /**
97 * Flush batch queue manually (send all pending requests immediately)

Callers 2

addMethod · 0.95
flushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected