MCPcopy Index your code
hub / github.com/cloudflare/capnweb / fillWindow

Method fillWindow

__tests__/flow-control.test.ts:58–65  ·  view source on GitHub ↗
(chunkSize: number)

Source from the content-addressed store, hash-verified

56 // Fill the window by sending chunks of the given size. Returns the number of chunks sent
57 // (the last one caused blocking).
58 fillWindow(chunkSize: number): number {
59 let count = 0;
60 while (!this.blocked) {
61 count++;
62 this.send(chunkSize);
63 }
64 return count;
65 }
66
67 // Advance to the next message's ack time, and deliver the ack to the flow controller.
68 waitForNextAck() {

Callers 1

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected