messagepool

package
v0.0.0-...-9faecf3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: LGPL-3.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 MessagePool

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

func New

func New() *MessagePool

func (*MessagePool) Contains

func (p *MessagePool) Contains(cp func(interface{}) bool) bool

func (*MessagePool) Obtain

func (p *MessagePool) Obtain(num int, cp func(interface{}) bool, duration time.Duration) []interface{}

func (*MessagePool) ObtainOne

func (p *MessagePool) ObtainOne(cp func(interface{}) bool, duration time.Duration) interface{}

func (*MessagePool) Push

func (p *MessagePool) Push(msg interface{})

Jump to

Keyboard shortcuts

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