ProcessGroupImplIO
Process group with bound input and output streams
Type members
Inherited classlikes
Types
Value members
Concrete methods
- Definition Classes
Inherited methods
Redirects the error outputs to a sink.
Redirects the error outputs to a sink.
The process error output type will be Unit. An alias for errorsToSink
- Value Params
- sink
Target sink
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Redirects the error outputs to a pipe and folds its output with a monoid instance.
Redirects the error outputs to a pipe and folds its output with a monoid instance.
The process error output type will be the same as the pipe's output type. An alias for errorsToFoldMonoid
- Type Params
- O
Output type of the pipe. Must have a monoid instance.
- Value Params
- pipe
Target pipe
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Redirects the error outputs to a pipe and collects its output to a vector
Redirects the error outputs to a pipe and collects its output to a vector
The process error output type will be a vector of the pipe's output type. An alias for errorsToVector
- Type Params
- O
Output type of the pipe
- Value Params
- pipe
Target pipe
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Adds an environment variable to the process
Adds an environment variable to the process
- Value Params
- nameValuePair
A pair of name and value
- Returns
a new process with the working directory set
- Inherited from
- ProcessLikeConfiguration
- Definition Classes
- Inherited from
- ProcessGroupConfiguration
Redirects the error outputs to a pipe and drains it regardless of its output type.
Redirects the error outputs to a pipe and drains it regardless of its output type.
The process error output type will be Unit.
- Type Params
- O
Output type of the pipe
- Value Params
- pipe
Target pipe
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Redirects the error outputs to a pipe and folds its output with a monoid instance.
Redirects the error outputs to a pipe and folds its output with a monoid instance.
The process error output type will be the same as the pipe's output type. An alias for !>#
- Type Params
- O
Output type of the pipe. Must have a monoid instance.
- Value Params
- pipe
Target pipe
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Redirects the error outputs to a sink.
Redirects the error outputs to a sink.
The process error output type will be Unit. An alias for !>
- Value Params
- sink
Target sink
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Redirects the error outputs to a pipe and collects its output to a vector
Redirects the error outputs to a pipe and collects its output to a vector
The process error output type will be a vector of the pipe's output type. An alias for !>?
- Type Params
- O
Output type of the pipe
- Value Params
- pipe
Target pipe
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Redirects the error outputs to a pipe and folds it with a custom function.
Redirects the error outputs to a pipe and folds it with a custom function.
The process error output type will be R.
- Type Params
- O
Output type of the pipe
- R
Result type of the fold
- Value Params
- fn
The fold function
- init
The initial value for the fold
- pipe
Target pipe
- Returns
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from
- RedirectableErrors
Changes the working directory of the process
Changes the working directory of the process
- Value Params
- workingDirectory
the working directory
- Returns
a new process with the working directory set
- Inherited from
- ProcessLikeConfiguration
Use the inherited working directory of the process instead of an explicit one
Use the inherited working directory of the process instead of an explicit one
- Returns
a new process with the working directory cleared
- Inherited from
- ProcessLikeConfiguration
Starts the process group asynchronously and blocks the execution until it is finished
Starts the process group asynchronously and blocks the execution until it is finished
- Value Params
- runner
The process runner to be used
- Returns
the result of the finished processes
- Inherited from
- ProcessGroup
Starts the process group asynchronously and returns a closeable fiber representing it
Starts the process group asynchronously and returns a closeable fiber representing it
Joining the fiber waits for the processes to be terminated. Canceling the fiber terminates the processesnormally (with SIGTERM).
- Value Params
- runner
The process runner to be used
- Returns
a managed fiber representing the running processes
- Inherited from
- ProcessGroup
Starts the process group asynchronously and returns the RunningProcessGroup interface for it
Starts the process group asynchronously and returns the RunningProcessGroup interface for it
This is the most advanced way to start process groups. See start and run as alternatives.
- Type Params
- Info
The runner-specific information about the started processes
- Value Params
- runner
The process runner to be used
- Returns
interface for handling the running process group
- Inherited from
- ProcessGroup
Removes an environment variable from the process
Removes an environment variable from the process
Usable to remove variables inherited from the parent process.
- Value Params
- name
Name of the environment variable
- Returns
a new process with the working directory set
- Inherited from
- ProcessLikeConfiguration
Inherited fields
A more advanced interface for customizing the redirection per process
A more advanced interface for customizing the redirection per process
- Inherited from
- RedirectableErrors