ringbuffer

package
v0.0.0-...-db34e72 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RingBuffer

type RingBuffer[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](name string, size uint64) *RingBuffer[T]

func (*RingBuffer[T]) Close

func (r *RingBuffer[T]) Close()

func (*RingBuffer[T]) Name

func (r *RingBuffer[T]) Name() string

func (*RingBuffer[T]) Receive

func (r *RingBuffer[T]) Receive() (T, error)

func (*RingBuffer[T]) Send

func (r *RingBuffer[T]) Send(value T) error

Jump to

Keyboard shortcuts

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