UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

21 lines • 999 B
export interface DrainStallPeer { readonly sink: { writeRaw(chunk: string): void; waitForBackpressure(): Promise<void>; }; readonly stallMs: number; readonly stopped: AbortSignal; /** Bytes still queued behind the write, reported by the stall error. */ readonly queuedBytes: () => number; /** A resync-capable peer sheds and pings at the deadline instead of being cut; false for a plain legacy peer. */ readonly shedAndPing: () => boolean; } /** * Resolve when the sink accepted the write, or throw SocketEventQueueStallError * once the peer has held the transport full for stallMs. The notice may only reach * the sink's buffer - the peer is not draining - so the transport delivers it on * close by half-closing the socket and destroying it only after a bounded grace * (socket-sink.ts). */ export declare function waitForDrainOrStall(peer: DrainStallPeer, writtenBytes: number): Promise<void>; //# sourceMappingURL=socket-drain-stall.d.ts.map