createOutput

Blocks the current thread until Process completion, Output.Options.Builder.timeoutMillis is exceeded, or Output.Options.Builder.maxBuffer is exceeded.

Utilizes the default Output.Options.

NOTE: For a long-running Process, createProcess or createProcessAsync + use should be preferred.

Return

The Output

See also

Throws

If Process creation failed.

UnsupportedOperationException

On Js/WasmJs Browser.


inline fun createOutput(block: Output.Options.Builder.() -> Unit): Output(source)

Blocks the current thread until Process completion, Output.Options.Builder.timeoutMillis is exceeded, or Output.Options.Builder.maxBuffer is exceeded.

NOTE: For a long-running Process, createProcess or createProcessAsync + use should be preferred.

Return

The Output

Parameters

block

lambda to configure Output.Options

See also

Throws

If Process creation failed.

UnsupportedOperationException

on Js/WasmJs Browser.