StreamBufferPolicy Type
An opt-in bounded/backpressure policy for the streaming verbs (`StdoutLinesAsync` / `OutputEventsAsync` / `WaitForLineAsync`), set via `Command.StreamBuffer`. Unlike `OutputBufferPolicy` — which bounds an in-memory *buffer* a one-shot verb assembles — this bounds the *channel* between the background pump and your live consumer. Leaving it unset keeps today's unbounded channel: an unbounded, uncapped in-flight backlog, exactly as before this policy existed.
Instance members
| Instance member |
Description
|
Full Usage:
this.Capacity
Returns: int
|
The bounded channel capacity, in lines/events not yet read by the consumer.
|
|
What happens once the channel reaches `Capacity`.
|
|
A copy with the full-mode changed, composable with any policy.
|
Static members
| Static member |
Description
|
Full Usage:
StreamBufferPolicy.Bounded(capacity, fullMode)
Parameters:
int
fullMode : StreamFullMode
Returns: StreamBufferPolicy
|
A channel bounded to `capacity` items with an explicit `fullMode`.
|
Full Usage:
StreamBufferPolicy.Bounded(capacity)
Parameters:
int
Returns: StreamBufferPolicy
|
A channel bounded to `capacity` items that backpressures the producer once full — the safest default for an opt-in cap: lossless, at the cost of the child's observable timing.
|
ProcessKit API Reference