Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parallel ¶
Parallel creates a synchronous in memory pipe, runs reader and writer functions as go routines and waits until both of them are quits. It closes the reader and writer at the end of functions. ctx is cancelled automatically if any of the functions returns an error
It uses io.Pipe under the hood, see https://pkg.go.dev/io#Pipe for details.
Types ¶
Click to show internal directories.
Click to hide internal directories.