aio

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncReader

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

func NewAsyncReader

func NewAsyncReader(r io.Reader, opts ...Option) *AsyncReader

func (*AsyncReader) Close

func (ar *AsyncReader) Close() error

func (*AsyncReader) Read

func (ar *AsyncReader) Read(p []byte) (int, error)

func (*AsyncReader) WriteTo

func (ar *AsyncReader) WriteTo(w io.Writer) (n int64, err error)

type AsyncWriter

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

func NewAsyncWriter

func NewAsyncWriter(w io.Writer, opts ...Option) *AsyncWriter

func (*AsyncWriter) Close

func (aw *AsyncWriter) Close() error

func (*AsyncWriter) Flush

func (aw *AsyncWriter) Flush()

func (*AsyncWriter) ReadFrom

func (aw *AsyncWriter) ReadFrom(r io.Reader) (n int64, err error)

func (*AsyncWriter) Write

func (aw *AsyncWriter) Write(p []byte) (n int, err error)

type Option

type Option func(*option)

func BufSize

func BufSize(bufSize int) Option

func Deadline

func Deadline(deadline time.Duration) Option

Deadline Only for AsyncWriter Flush.

func DeadlineFlushMinSize added in v0.12.22

func DeadlineFlushMinSize(n int) Option

func QueueSize

func QueueSize(queueSize int) Option

Jump to

Keyboard shortcuts

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