flush

package
v0.121.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State added in v0.88.0

type State struct {
	LastDataChange time.Time
	LastDataLength int
}

func (*State) Func added in v0.88.0

func (s *State) Func(splitFunc bufio.SplitFunc, period time.Duration) bufio.SplitFunc

Func wraps a bufio.SplitFunc with a timer. When the timer expires, an incomplete token may be returned. The timer will reset any time the data parameter changes.

Jump to

Keyboard shortcuts

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