rwcancel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 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