util

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmoothStream

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

SmoothStream a stream that regulates the reading speed of readers.

func NewSmoothStream

func NewSmoothStream() *SmoothStream

func (*SmoothStream) Close

func (stream *SmoothStream) Close()

func (*SmoothStream) DoneWrite

func (stream *SmoothStream) DoneWrite()

func (*SmoothStream) Recv

func (stream *SmoothStream) Recv() (rune, error)

Recv is not safe for concurrent read. Recv returns io.EOF or other errors Its callers' responsibility to close SmoothStream

func (*SmoothStream) Write

func (stream *SmoothStream) Write(r rune)

func (*SmoothStream) WriteError

func (stream *SmoothStream) WriteError(err error)

WriteError io.EOF or other errors

Jump to

Keyboard shortcuts

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