asyncio

package
v0.0.0-...-2c4df64 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeout = errors.New("asyncio timeout")

Functions

This section is empty.

Types

type File

type File struct {
	*os.File
	// contains filtered or unexported fields
}

File represents an open file descriptor that supports timeouts.

Read and Write operations uses the timeout.

Many functions, such as Fd, Stat, Close are supported directly through os.File.

func Open

func Open(name string) (*File, error)

func (*File) Read

func (f *File) Read(p []byte) (n int, err error)

func (*File) SetTimeout

func (f *File) SetTimeout(x time.Duration)

SetTimeout sets the timeout for Read and Write operations.

func (*File) Write

func (f *File) 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