lxd: github.com/lxc/lxd/shared/eagain Index | Files

package eagain

import "github.com/lxc/lxd/shared/eagain"


Package Files


type Reader Uses

type Reader struct {
    Reader io.Reader

Reader represents an io.Reader that handles EAGAIN

func (Reader) Read Uses

func (er Reader) Read(p []byte) (int, error)

Read behaves like io.Reader.Read but will retry on EAGAIN

type Writer Uses

type Writer struct {
    Writer io.Writer

Writer represents an io.Writer that handles EAGAIN

func (Writer) Write Uses

func (ew Writer) Write(p []byte) (int, error)

Write behaves like io.Writer.Write but will retry on EAGAIN

Package eagain imports 3 packages (graph) and is imported by 26 packages. Updated 2019-06-14. Refresh now. Tools for package owners.