buffchan

package
v0.0.0-...-3449da6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedChannel

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

BufferedChannel provides go channel like interface with unlimited storage

func New

func New() *BufferedChannel

New Creates new buffer channel

func (*BufferedChannel) Append

func (b *BufferedChannel) Append(v interface{})

Append adds given data at end of channel

func (*BufferedChannel) AsyncRemove

func (b *BufferedChannel) AsyncRemove() interface{}

AsyncRemove removes first element of list asynchronously

func (*BufferedChannel) Inspect

func (b *BufferedChannel) Inspect() interface{}

Inspect first element of list if exists

func (*BufferedChannel) Remove

func (b *BufferedChannel) Remove() interface{}

Remove removes first element of list synchronously

Jump to

Keyboard shortcuts

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