Process

fs2.io.process.Process
sealed trait Process[F[_]]

Attributes

Source
Process.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def exitValue: F[Int]

Fiber blocks until the process exits, then returns the exit value.

Fiber blocks until the process exits, then returns the exit value. If the process has already exited then the exit value is available immediately.

Attributes

Source
Process.scala
def isAlive: F[Boolean]

Attributes

Source
Process.scala
def stderr: Stream[F, Byte]

A Stream that reads from stderr of the process.

A Stream that reads from stderr of the process. This stream should be compiled at most once, and interrupting or otherwise canceling a read-in-progress may kill the process. Not draining this Stream may cause the process to block, or even deadlock.

Attributes

Source
Process.scala
def stdin: (F, Byte) => Nothing

A Pipe that writes to stdin of the process.

A Pipe that writes to stdin of the process. The resulting stream should be compiled at most once, and interrupting or otherwise canceling a write-in-progress may kill the process. If the process expects data through stdin, you have to supply it or close it. Failure to do so may cause the process to block, or even deadlock.

stdin resulting stream can be closed like this:

Attributes

Example

Stream.empty.through(stdin).compile.drain
Source
Process.scala
def stdout: Stream[F, Byte]

A Stream that reads from stdout of the process.

A Stream that reads from stdout of the process. This stream should be compiled at most once, and interrupting or otherwise canceling a read-in-progress may kill the process. Not draining this Stream may cause the process to block, or even deadlock.

Attributes

Source
Process.scala