rwcancel

package
v0.0.0-...-fe39636 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rwcancel implements cancelable read/write operations on a file descriptor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetryAfterError

func RetryAfterError(err error) bool

Types

type RWCancel

type RWCancel struct {
	// contains filtered or unexported fields
}

func NewRWCancel

func NewRWCancel(fd int) (*RWCancel, error)

func (*RWCancel) Cancel

func (rw *RWCancel) Cancel() (err error)

func (*RWCancel) Close

func (rw *RWCancel) Close()

func (*RWCancel) Read

func (rw *RWCancel) Read(p []byte) (n int, err error)

func (*RWCancel) ReadyRead

func (rw *RWCancel) ReadyRead() bool

func (*RWCancel) ReadyWrite

func (rw *RWCancel) ReadyWrite() bool

func (*RWCancel) Write

func (rw *RWCancel) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL