pub fn spawn_pipe_relay(
source: &AnonPipe,
ours_readable: bool,
their_handle_inheritable: bool
) -> Result<AnonPipe>
Expand description
Takes an asynchronous source pipe and returns a synchronous pipe suitable for sending to a child process.
This is achieved by creating a new set of pipes and spawning a thread that relays messages between the source and the synchronous pipe.