ProcessWithResult
eff ProcessWithResultSourceAn effect used to start a process outside the JVM.
Operations
def execWithCwdAndEnv(cmd: String, args: List[String], cwd: Option[String], env: Map[String, String]): Result[IoError, ProcessHandle] \ ProcessWithResult
 SourceImmediately executes the command cmd with the arguments args, by the path cwd and with the environmental env.
def exitValue(ph: ProcessHandle): Result[IoError, Int32] \ ProcessWithResult
 SourceReturns the exit value of the process.
def isAlive(ph: ProcessHandle): Result[IoError, Bool] \ ProcessWithResult
 SourceReturns status of the process, if it alive or not.
def pid(ph: ProcessHandle): Result[IoError, Int64] \ ProcessWithResult
 SourceReturns the PID of the process.
def stop(ph: ProcessHandle): Result[IoError, Unit] \ ProcessWithResult
 SourceStops the process.
def waitFor(ph: ProcessHandle): Result[IoError, Int32] \ ProcessWithResult
 SourceWaits for process to finish.
def waitForTimeout(ph: ProcessHandle, time: Int64, tUnit: TimeUnit): Result[IoError, Bool] \ ProcessWithResult
 SourceWaits a specified amount of time for the process to finish
Definitions
def exec(cmd: String, args: List[String]): Result[IoError, ProcessHandle] \ ProcessWithResult
 SourceExecutes the command cmd with the arguments args.
def execWithCwd(cmd: String, args: List[String], cwd: Option[String]): Result[IoError, ProcessHandle] \ ProcessWithResult
 SourceExecutes the command cmd with the arguments args, by the path cwd.
def execWithEnv(cmd: String, args: List[String], env: Map[String, String]): Result[IoError, ProcessHandle] \ ProcessWithResult
 SourceExecutes the command cmd with the arguments args and with the environmental env.
def handle(f: a -> b \ ef): a -> b \ (ef - ProcessWithResult) + IO
 SourceHandles the ProcessWithResult effect of the given function f.
In other words, re-interprets the ProcessWithResult effect using the IO effect.
def runWithIO(f: Unit -> a \ ef): a \ (ef - ProcessWithResult) + IO
 SourceRuns the Process effect of the given function f.
In other words, re-interprets the Process effect using the IO effect.