util

package
v0.0.0-...-7cd50c7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelBuffer

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

func NewChannelBuffer

func NewChannelBuffer(capacity int) *ChannelBuffer

func (*ChannelBuffer) Add

func (cb *ChannelBuffer) Add(item interface{})

ATTENTION: nil must not be passed as an argument to Add().

func (*ChannelBuffer) Close

func (cb *ChannelBuffer) Close() []interface{}

ATTENTION: Add() or Get() must not be called after or concurrently with Close().

func (*ChannelBuffer) Get

func (cb *ChannelBuffer) Get() []interface{}

func (*ChannelBuffer) PeriodicFunc

func (cb *ChannelBuffer) PeriodicFunc(period time.Duration, f func([]interface{}))

func (*ChannelBuffer) StopFunc

func (cb *ChannelBuffer) StopFunc()

Jump to

Keyboard shortcuts

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