createOutputAsync

Creates the Process asynchronously using the configured async context and suspends until its 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, createProcessAsync or createProcess + use should be preferred.

Return

The Output

See also

Throws

CancellationException

If Process creation failed.

UnsupportedOperationException

On Js/WasmJs Browser.


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

Creates the Process asynchronously using the configured async context and suspends until its completion, Output.Options.Builder.timeoutMillis is exceeded, or Output.Options.Builder.maxBuffer is exceeded.

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

Return

The Output

Parameters

block

lambda to configure Output.Options

See also

Throws

CancellationException

If Process creation failed.

UnsupportedOperationException

on Js/WasmJs Browser.