MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / add_send_task

Method add_send_task

webiojs/src/utils.ts:217–224  ·  view source on GitHub ↗
(task: any, allow_batch_send = true)

Source from the content-addressed store, hash-verified

215 * the sending will retry when there are unfinished task in queue.
216 * */
217 add_send_task(task: any, allow_batch_send = true) {
218 if (this._stop) return;
219 this.queue.push({
220 enable_batch: allow_batch_send,
221 task: task
222 });
223 this.do_send();
224 }
225
226 private get_tasks() {
227 let tasks: any[] = [];

Callers 2

send_messageMethod · 0.80
send_bufferMethod · 0.80

Calls 2

do_sendMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected