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

Method onError

src/streams.ts:216–218  ·  view source on GitHub ↗
(token: SendToken)

Source from the content-addressed store, hash-verified

214 // Called when a previously-sent write fails. Restores bytesInFlight without updating
215 // any BDP estimates.
216 onError(token: SendToken): void {
217 this.bytesInFlight -= token.size;
218 }
219
220 // Called when an ack is received for a previously-sent write. Updates BDP estimates and
221 // the window. Returns whether a blocked sender should now unblock.

Callers 3

configureMethod · 0.80
writeFunction · 0.80

Calls

no outgoing calls

Tested by 1

configureMethod · 0.64