timingwheel

package
v0.0.0-...-bdc7756 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimingWheel

type TimingWheel struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTimingWheel

func NewTimingWheel(interval time.Duration, buckets int) *TimingWheel

func (*TimingWheel) After

func (w *TimingWheel) After(timeout time.Duration) <-chan struct{}

func (*TimingWheel) Stop

func (w *TimingWheel) Stop()

Jump to

Keyboard shortcuts

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