Process

zio.process.Process
final case class Process(process: Process)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

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.

Attributes

def exitCode: ZIO[Any, CommandError, ExitCode]

Return the exit code of this process.

Return the exit code of this process.

Attributes

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).

Attributes

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.

Attributes

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.

Attributes

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+

Attributes

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+

Attributes

def pid: ZIO[Any, CommandError, Long]

Returns the native process ID of the process.

Returns the native process ID of the process.

Note: This method requires JDK 9+

Attributes

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.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

Access the standard error stream.

Access the standard error stream.

Attributes

Access the standard output stream.

Access the standard output stream.

Attributes