# Functions
Close closes a pipe and optionally sends an error.
New creates a new pipe.
ReadErrors selects all received errors and returns them.
WaitAndRedirect waits for pipe to be closed and redirects all messages from pipe to redirectPipe while it waits.