A running child process; the constructor is Effect's makeHandle.
exit_code: waits for the exit; fails if a signal ended the process, or with the error of a stream feeding one of its inputs.stdin: a sink writing standard input; text is encoded with the command'sStdinConfig.encoding.stdout,stderr: byte streams of its output;allboth, interleaved. Reading one alongsideallsplits the output between them.get_input_fd/get_output_fd: an additional descriptor's sink or stream (a draining sink and an empty stream for one not set up).unref: stop the scope from killing the process when it closes; theRerefit gives back undoes that.
Attributes#
| Attribute | Type | Description |
|---|---|---|
pid | ProcessId | |
exit_code | Effect[ExitCode, PlatformError] | |
is_running | Effect[bool, PlatformError] | |
kill | Kill | |
stdin | Sink[None, bytes | str, Never, PlatformError] | |
stdout | Stream[bytes, PlatformError] | |
stderr | Stream[bytes, PlatformError] | |
all | Stream[bytes, PlatformError] | |
get_input_fd | Callable[[int], Sink[None, bytes, Never, PlatformError]] | |
get_output_fd | Callable[[int], Stream[bytes, PlatformError]] | |
unref | Effect[Reref, PlatformError] |
Functions#
__init__#
__init__(*, pid, exit_code, is_running, kill, stdin, stdout, stderr, all, get_input_fd, get_output_fd, unref) -> None| Parameter | Type | Description |
|---|---|---|
pid | ProcessId | |
exit_code | Effect[ExitCode, PlatformError] | |
is_running | Effect[bool, PlatformError] | |
kill | Kill | |
stdin | Sink[None, bytes | str, Never, PlatformError] | |
stdout | Stream[bytes, PlatformError] | |
stderr | Stream[bytes, PlatformError] | |
all | Stream[bytes, PlatformError] | |
get_input_fd | Callable[[int], Sink[None, bytes, Never, PlatformError]] | |
get_output_fd | Callable[[int], Stream[bytes, PlatformError]] | |
unref | Effect[Reref, PlatformError] |