flix

0.56.0

ProcessHandle

enum ProcessHandleSource
case ProcessHandle({ exitValue = Unit -> Int32 \ Exec + IO, isAlive = Unit -> Bool \ Exec + IO, stop = Unit -> Unit \ Exec + IO })

Handles the created Process.

Definitions

def exitValue(ph: ProcessHandle): Int32 \ Exec + IO Source

Returns the exit value of the process.

def isAlive(ph: ProcessHandle): Bool \ Exec + IO Source

Returns status of the process, if it alive or not.

def stop(ph: ProcessHandle): Unit \ Exec + IO Source

Stops the process.