timewheel

package
v0.0.0-...-274c0b4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessFunc

type ProcessFunc func()

type RingBuffer

type RingBuffer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

learn use of timeWheel

func (*RingBuffer) DeleteKeyTask

func (r *RingBuffer) DeleteKeyTask(key string)

func (*RingBuffer) End

func (r *RingBuffer) End()

func (*RingBuffer) Process

func (r *RingBuffer) Process()

func (*RingBuffer) ProcessTask

func (r *RingBuffer) ProcessTask(idx int64)

func (*RingBuffer) RegisterTask

func (r *RingBuffer) RegisterTask(task Task)

func (*RingBuffer) Start

func (r *RingBuffer) Start()

type Task

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

Jump to

Keyboard shortcuts

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