Process

final case
class Process(process: Process)
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def execute[T](f: Process => T): ZIO[Any, CommandError, T]

Access the underlying Java Process wrapped in a blocking ZIO.

Access the underlying Java Process wrapped in a blocking ZIO.

def exitCode: ZIO[Any, CommandError, ExitCode]

Return the exit code of this process.

Return the exit code of this process.

def isAlive: UIO[Boolean]

Tests whether the process is still alive (not terminated or completed).

Tests whether the process is still alive (not terminated or completed).

def kill: ZIO[Any, CommandError, Unit]

Kills the process and will wait until completed. Equivalent to SIGTERM on Unix platforms.

Kills the process and will wait until completed. Equivalent to SIGTERM on Unix platforms.

def killForcibly: ZIO[Any, CommandError, Unit]

Kills the process and will wait until completed. Equivalent to SIGKILL on Unix platforms.

Kills the process and will wait until completed. Equivalent to SIGKILL on Unix platforms.

def killTree: ZIO[Any, CommandError, Unit]

Kills the entire process tree and will wait until completed. Equivalent to SIGTERM on Unix platforms.

Kills the entire process tree and will wait until completed. Equivalent to SIGTERM on Unix platforms.

Note: This method requires JDK 9+

def killTreeForcibly: ZIO[Any, CommandError, Unit]

Kills the entire process tree and will wait until completed. Equivalent to SIGKILL on Unix platforms.

Kills the entire process tree and will wait until completed. Equivalent to SIGKILL on Unix platforms.

Note: This method requires JDK 9+

def successfulExitCode: ZIO[Any, CommandError, ExitCode]

Return the exit code of this process if it is zero. If non-zero, it will fail with CommandError.NonZeroErrorCode.

Return the exit code of this process if it is zero. If non-zero, it will fail with CommandError.NonZeroErrorCode.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

Access the standard error stream.

Access the standard error stream.

Access the standard output stream.

Access the standard output stream.