Skip to content
/ iopipe Public

Provides the function Parallel to create a synchronous in memory pipe and lets you write to and read from the pipe parallelly.

License

Notifications You must be signed in to change notification settings

ozgio/iopipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Parallel IO Pipe

iopipe provides the function Parallel to create a synchronous in memory pipe and lets you write to and read from the pipe parallely.

Usage

// Writes `Hello world` to standard output
err := iopipe.Parallel(context.Background(), func(ctx context.Context, w io.Writer) error {
    _, err := fmt.Fprint(w, "Hello World")
    return err
}, func(ctx context.Context, r io.Reader) error {
    _, err := io.Copy(os.Stdout, pr)
    return err
})

About

Provides the function Parallel to create a synchronous in memory pipe and lets you write to and read from the pipe parallelly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages