MCPcopy
hub / github.com/cloudflare/capnweb / waitForNextAck

Method waitForNextAck

__tests__/flow-control.test.ts:68–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67 // Advance to the next message's ack time, and deliver the ack to the flow controller.
68 waitForNextAck() {
69 let entry = this.inFlight.shift();
70 if (entry) {
71 this.t = entry.ackTime;
72 if (this.fc.onAck(entry.token)) {
73 this.blocked = false;
74 }
75 }
76 }
77
78 // Simulate the application writing to the stream as fast as it can for the given duration.
79 saturateFor(duration: number): void {

Callers 2

saturateForMethod · 0.95

Calls 1

onAckMethod · 0.80

Tested by

no test coverage detected