Handler

sealed class Handler(stdio: Stdio.Config) : Blocking(source)

Helper class which Process implements that handles everything regarding dispatching of stdout and stderr output to attached OutputFeed.

Upon Process destruction, all attached OutputFeed are ejected.

Inheritors

Constructors

Link copied to clipboard
protected constructor(stdio: Stdio.Config)

Properties

Link copied to clipboard
@JvmField
@Volatile
protected var isDestroyed: Boolean

Functions

Link copied to clipboard

Attaches a single OutputFeed to obtain stderr output.

fun stderrFeed(vararg feeds: OutputFeed): Process

Attaches multiple OutputFeed to obtain stderr output. This is handy at Process startup such that no data is missed if there are multiple feeds needing to be attached.

Link copied to clipboard

Returns a Waiter for stderr in order to await any final asynchronous output after resource closure occurs.

Link copied to clipboard

Attaches a single OutputFeed to obtain stdout output.

fun stdoutFeed(vararg feeds: OutputFeed): Process

Attaches multiple OutputFeed to obtain stdout output. This is handy at Process startup such that no data is missed if there are multiple feeds needing to be attached.

Link copied to clipboard

Returns a Waiter for stdout in order to await any final asynchronous output after resource closure occurs.