delay

package
v0.0.0-...-2b644c5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Put

func Put(c chan interface{}, v interface{}) bool

func TryClear

func TryClear(c <-chan interface{})

func TryMove

func TryMove(in <-chan interface{}, out chan<- interface{}) (bool, interface{})

func TryPut

func TryPut(c chan<- interface{}, v interface{}) bool

Types

type Config

type Config struct {
	CacheC   chan interface{}
	OutC     chan<- interface{}
	TickC    chan interface{}
	StopC    chan interface{}
	Callback func(interface{})
}

func New

func New(duration time.Duration, ch chan<- interface{}, callback func(interface{})) *Config

func (*Config) Put

func (c *Config) Put(v interface{}, force bool)

func (*Config) Stop

func (c *Config) Stop()

Jump to

Keyboard shortcuts

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